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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.bugs/] [891230_01.C] - Blame information for rev 749

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

Line No. Rev Author Line
1 699 jeremybenn
// { dg-do run  }
2
// g++ 1.36.1 bug 891230_01
3
 
4
// g++ gives typedefs which are nested within class declarations a scope
5
// which is local to the class declaration itself.  This causes examples
6
// like the following to get compile-time errors.
7
 
8
// Cfront 2.0 passes this test.
9
 
10
// keywords: typedef, nested types, scope
11
 
12
struct foo {
13
 
14
    typedef foo* foo_p;
15
    void member (foo_p);
16
};
17
 
18
void foo::member (foo_p p) {    // { dg-bogus "" } s
19
}
20
 
21
int main () { return 0; }

powered by: WebSVN 2.1.0

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