re PR c++/11991 (ICE in cxx_incomplete_type_diagnostic, at cp/typeck2.c:282 when applying typeid operator to template template parameter)

PR c++/11991
	* g++.dg/rtti/typeid3.C: New test.

From-SVN: r71489
This commit is contained in:
Mark Mitchell 2003-09-17 23:50:04 +00:00 committed by Mark Mitchell
parent 7d8405cf15
commit 15dd86befa
2 changed files with 14 additions and 0 deletions

View File

@ -1,5 +1,8 @@
2003-09-17 Mark Mitchell <mark@codesourcery.com>
PR c++/11991
* g++.dg/rtti/typeid3.C: New test.
PR c++/12266
* g++.dg/overload/template1.C: New test.

View File

@ -0,0 +1,11 @@
#include <typeinfo>
template <template <class> class T> struct A {
void error() {
typeid(T).name(); // { dg-error "" }
}
};
template <class T> struct B {};
template void A<B>::error(); // { dg-error "instantiated" }