diff options
author | Volker Reichelt <reichelt@igpm.rwth-aachen.de> | 2005-12-19 17:28:30 +0000 |
---|---|---|
committer | Volker Reichelt <reichelt@gcc.gnu.org> | 2005-12-19 17:28:30 +0000 |
commit | 2f201ba0506c51ea403f402170c30ad2366fb71a (patch) | |
tree | 95bfd7ca4f1b4d3fe0ecc00fb799ebfae9fa1ae5 /gcc | |
parent | 8ef1f2df8fe104b817d8fc6f5b9d125daf70328e (diff) | |
download | gcc-2f201ba0506c51ea403f402170c30ad2366fb71a.zip gcc-2f201ba0506c51ea403f402170c30ad2366fb71a.tar.gz gcc-2f201ba0506c51ea403f402170c30ad2366fb71a.tar.bz2 |
re PR c++/20552 (ICE in write_type, at cp/mangle.c:1579)
PR c++/20552
* g++.dg/ext/typeof10.C: New test.
From-SVN: r108796
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/ext/typeof10.C | 11 |
2 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 02d6c86..d4bcb6a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2005-12-19 Volker Reichelt <reichelt@igpm.rwth-aachen.de> + + PR c++/20552 + * g++.dg/ext/typeof10.C: New test. + 2005-12-19 Nathan Sidwell <nathan@codesourcery.com> * gcc.dg/mt-loopi1.c: New. diff --git a/gcc/testsuite/g++.dg/ext/typeof10.C b/gcc/testsuite/g++.dg/ext/typeof10.C new file mode 100644 index 0000000..1b357ad --- /dev/null +++ b/gcc/testsuite/g++.dg/ext/typeof10.C @@ -0,0 +1,11 @@ +// PR c++/20552 +// Origin: Ivan Godard <igodard@pacbell.net> + +template<int> struct A +{ + void foo() + { + typedef int T; // { dg-error "previous" } + typedef __typeof__(*this) T; // { dg-error "conflicting" } + } +}; |