aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/eh2.C
blob: 9559b4eccc11eb06958abad65e5f62712ce6e30f (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 "required" }