Commit 15dd86be by Mark Mitchell Committed by Mark Mitchell

re PR c++/11991 (ICE in cxx_incomplete_type_diagnostic, at cp/typeck2.c:282 when…

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
parent 7d8405cf
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.
......
#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" }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment