// PR c++/23191 // Origin: Volker Reichelt // { dg-do compile } template struct A { void foo() throw(typename T::X); // { dg-error "not a class" } }; A a; // { dg-message "instantiated" }