summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/crash79.C
blob: a18eac336b921028b05122e041d01d246badc1ef (plain)
1
2
3
4
5
6
7
8
9
// PR c++/36404

struct A
{
  A(int);
  template<int> enum { e }; // { dg-error "template|expected" }
};

A a(A::e); // { dg-error "not a member" }