diff options
author | (no author) <(no author)@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-09-22 21:39:00 +0000 |
---|---|---|
committer | (no author) <(no author)@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-09-22 21:39:00 +0000 |
commit | 2e9c0dc38e2692b04281844366dbb367ae1294e1 (patch) | |
tree | e56f44693864144d87710daeab9743d4e76b6037 /gcc/testsuite/g++.dg/template/crash8.C | |
parent | 780b7d9b87ddf306aa31c750d5eb9d96a9cb69ea (diff) |
This commit was manufactured by cvs2svn to create tagobjc-improvements-candidate-20030922
'objc-improvements-candidate-20030922'.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/tags/objc-improvements-candidate-20030922@71666 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/g++.dg/template/crash8.C')
-rw-r--r-- | gcc/testsuite/g++.dg/template/crash8.C | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/template/crash8.C b/gcc/testsuite/g++.dg/template/crash8.C new file mode 100644 index 00000000000..a6f26b30679 --- /dev/null +++ b/gcc/testsuite/g++.dg/template/crash8.C @@ -0,0 +1,20 @@ +// { dg-do compile } + +// Origin: David Robinson <drtr@dial.pipex.com> + +// PR c++/11513: ICE due to incorrect decision whether the tag is template. + +template <typename T> +struct bar +{ + struct foo + { + int a; + }; + + template <typename U> + int wom(U c) + { + struct foo b; + } +}; |