summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.robertl/eb76.C
blob: c74e7bd8134adeae974cb289f7570e3e59698a99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// { dg-do assemble  }
// the template operator!= interferes.  It should be in a namespace.

#include <utility>

enum T {
  V1
};

struct X {
  T      t : 31;
};

void
f(X& v) {
  if( v.t != V1 ) {		// complains about taking address of bitfield
  }
}