PR modula2/116048 ICE when encountering wrong kind of qualident
[official-gcc.git] / gcc / testsuite / g++.dg / template / eh2.C
blob3ed80a4672988f63ac72c6a58fd226fb61d595f6
1 // PR c++/23191
2 // Origin: Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3 // { dg-do compile { target c++14_down } }
5 template<typename T> struct A
7     void foo() throw(typename T::X);  // { dg-error "not a class" }
8 };                                    // { dg-warning "deprecated" "" { target c++11 } .-1 }
10 A<void> a;                            // { dg-message "required" }