re PR c++/11471 (ICE on illegal use of typedef'd member class)

PR c++/11471
	PR c++/27102
	* g++.dg/template/crash48.C: New test.

From-SVN: r113382
This commit is contained in:
Volker Reichelt 2006-04-29 21:39:54 +00:00 committed by Volker Reichelt
parent 139a78c724
commit b1482d1512
2 changed files with 14 additions and 0 deletions

View File

@ -1,5 +1,9 @@
2006-04-29 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR c++/11471
PR c++/27102
* g++.dg/template/crash48.C: New test.
PR c++/27279
* g++.dg/parse/ctor4.C: New test.

View File

@ -0,0 +1,10 @@
// PR c++/11471
// Origin: <bagnara@cs.unipr.it>
// { dg-do compile }
template<typename T> struct A
{
typedef typename T::X X;
};
template<typename T> A<T>::X::X() {} // { dg-error "no type|invalid use" }