OSDN Git Service

* parser.c (cp_parser_class_specifier): Set class location to that
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / eh2.C
1 // PR c++/23191
2 // Origin: Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3 // { dg-do compile }
4
5 template<typename T> struct A
6 {
7     void foo() throw(typename T::X);  // { dg-error "not a class" }
8 };
9
10 A<void> a;                            // { dg-message "instantiated" }