summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/eh2.C
blob: d2c049c8a0626f3d3db327ff870e39e5977ad646 (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/23191
// Origin: Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
// { dg-do compile }

template<typename T> struct A
{
    void foo() throw(typename T::X);  // { dg-error "not a class" }
};

A<void> a;                            // { dg-message "instantiated" }