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/] [891229_02.C] - Blame information for rev 699

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 699 jeremybenn
// { dg-do assemble  }
2
// g++ 1.36.1 bug 891229_02
3
 
4
// g++ limits the scope of names which are declared as typedef names within
5
// another type to that other type.
6
 
7
// This conflicts with the (global) scope given to such names by cfront 2.0.
8
 
9
// Cfront 2.0 passes this test.
10
 
11
// Note 2/15/94:  The standard has changed; this limiting of scope is correct
12
// behavior.  See 9.9.  --jason
13
 
14
// keywords: typedef, nested types, scope
15
 
16
struct foo {
17
        foo ();
18
        typedef void (*function_p) (void);
19
};
20
 
21
function_p fp;          // { dg-error "" } no such type in scope
22
 
23
foo::foo () {}
24
 
25
int main () { return 0; }

powered by: WebSVN 2.1.0

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