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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [lookup/] [scoped5.C] - Blame information for rev 844

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do compile }
2
 
3
// Origin: pepeaty@yahoo.com
4
 
5
// PR c++/10230: ICE while determining if refered non-static member
6
// is from a base type of the current class.
7
 
8
class A {
9
public:
10
  class B {
11
  public:
12
    int a;                      // { dg-error "object missing" }
13
  };
14
};
15
 
16
class C {
17
public:
18
  void f(void) { sizeof(A::B::a); } // { dg-error "this location" }
19
};

powered by: WebSVN 2.1.0

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