aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/pr51226.C
blob: 1e048ef2c54e273e9fdaa6331eeca4bc5f5eed12 (plain)
1
2
3
4
5
6
7
8
9
// PR c++/51226
// { dg-do compile { target c++11 } }

template<int> struct A           // { dg-error "provided" }
{
  enum E : int;
};

template<> enum A<>::E : int {}  // { dg-error "wrong number|expected" }