repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/85553
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
pr51226.C
blob
89200ee3d27760740729890d0dd16b463a5c985f
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" }