]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/g++.dg/cpp0x/pr51226.C
PR c++/92590 - wrong handling of inherited default ctor.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / pr51226.C
1 // PR c++/51226
2 // { dg-do compile { target c++11 } }
3
4 template<int> struct A // { dg-message "provided" }
5 {
6 enum E : int;
7 };
8
9 template<> enum A<>::E : int {} // { dg-error "wrong number" }
10
11 // { dg-prune-output "expected" }
12 // { dg-prune-output "specialization" }
This page took 0.039943 seconds and 5 git commands to generate.