blob: 7a35e6e807217d969a08e855b78d83f89b18542d [file] [log] [blame]
// PR c++/24817
struct exception {};
template <typename T> void foo() throw(exception); // { dg-error "declaration" }
template <typename T> void foo(); // { dg-error "exceptions" }
struct bar
{
template <typename T> friend void foo(); // { dg-error "exceptions" }
};