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
Rebase.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.robertl
/
eb76.C
blob
3125dc15f34ee5c19e901ee178184d720e0b63a5
1
// { dg-do assemble }
2
// { dg-options "-fno-short-enums" }
3
// the template operator!= interferes. It should be in a namespace.
4
5
#include <utility>
6
7
enum T {
8
V1
9
};
10
11
struct X {
12
T t : 31;
13
};
14
15
void
16
f(X& v) {
17
if( v.t != V1 ) { // complains about taking address of bitfield
18
}
19
}