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
This commit is contained in:
Volker Reichelt 2005-12-19 17:28:30 +00:00 committed by Volker Reichelt
parent 8ef1f2df8f
commit 2f201ba050
2 changed files with 16 additions and 0 deletions

View File

@ -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.

View File

@ -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" }
}
};