OpenCores
URL https://opencores.org/ocsvn/scarts/scarts/trunk

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.dg/] [parse/] [error20.C] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
// PR c++/17821
2
 
3
struct A {
4
  A(int i) {}
5
};
6
struct B {
7
  int i;
8
};
9
struct C {
10
  B* p;
11
};
12
int main() {
13
  C c;
14
  A(c.p.i); // { dg-error "member.*non-class" }
15
  return 0;
16
}
17
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.