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:
parent
7d8405cf15
commit
15dd86befa
@ -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.
|
||||
|
||||
|
11
gcc/testsuite/g++.dg/rtti/typeid3.C
Normal file
11
gcc/testsuite/g++.dg/rtti/typeid3.C
Normal 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" }
|
Loading…
Reference in New Issue
Block a user