Debian Codegraph @

gcc/testsuite/g++.dg/rtti/typeid3.C

raw
1 #include <typeinfo>
2
3 template <template <class> class T> struct A {
4 void error() {
5 typeid(T).name(); // { dg-error "missing" }
6 }
7 };
8
9 template <class T> struct B {};
10
11 template void A<B>::error();