OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.bugs/] [891229_02.C] - Diff between revs 305 and 338

Only display areas with differences | Details | Blame | View Log

Rev 305 Rev 338
// { dg-do assemble  }
// { dg-do assemble  }
// g++ 1.36.1 bug 891229_02
// g++ 1.36.1 bug 891229_02
// g++ limits the scope of names which are declared as typedef names within
// g++ limits the scope of names which are declared as typedef names within
// another type to that other type.
// another type to that other type.
// This conflicts with the (global) scope given to such names by cfront 2.0.
// This conflicts with the (global) scope given to such names by cfront 2.0.
// Cfront 2.0 passes this test.
// Cfront 2.0 passes this test.
// Note 2/15/94:  The standard has changed; this limiting of scope is correct
// Note 2/15/94:  The standard has changed; this limiting of scope is correct
// behavior.  See 9.9.  --jason
// behavior.  See 9.9.  --jason
// keywords: typedef, nested types, scope
// keywords: typedef, nested types, scope
struct foo {
struct foo {
        foo ();
        foo ();
        typedef void (*function_p) (void);
        typedef void (*function_p) (void);
};
};
function_p fp;          // { dg-error "" } no such type in scope
function_p fp;          // { dg-error "" } no such type in scope
foo::foo () {}
foo::foo () {}
int main () { return 0; }
int main () { return 0; }
 
 

powered by: WebSVN 2.1.0

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