summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/bitfield1.C
blob: 2e076058508fbdbfe724d7addacb9eb36aaec516 (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/27803

struct A
{
  double i : 8; // { dg-error "type" }
};

void foo(A& a)
{
  (char)a.i;    // { dg-error "no member" }
}