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
Reset branch to trunk.
[official-gcc.git]
/
trunk
/
gcc
/
testsuite
/
g++.dg
/
other
/
bitfield3.C
blob
b9726c26a51f759d2cbcec495bd374da89b7aafc
1
// PR c++/33841
2
// { dg-do compile }
3
4
template<int> struct A
5
{
6
struct {} : 2; // { dg-error "with non-integral type" }
7
};
8
9
template<int> struct B
10
{
11
int a;
12
struct {} : 2; // { dg-error "with non-integral type" }
13
int b;
14
};
15
16
struct C : A<0> {};
17
struct D : B<0> {};