summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/inherit/error1.C
blob: 1570bf11e2ea84c25929aecf1c5b2ed40aad4b2e (plain)
1
2
3
4
5
6
7
8
9
10
// PR 12486

struct A { int ma; }; 
struct B { }; 
 
void foo() 
{ 
  B *b; 
  b->A::ma=0; // { dg-error "" }
}