URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 305 |
Rev 338 |
// { dg-do assemble }
|
// { dg-do assemble }
|
// Copyright (C) 1999 Free Software Foundation, Inc.
|
// Copyright (C) 1999 Free Software Foundation, Inc.
|
// Contributed by Nathan Sidwell 25 Aug 1999
|
// Contributed by Nathan Sidwell 25 Aug 1999
|
|
|
// Bug 3
|
// Bug 3
|
// typenames are not injected early enough, [basic.scope.pdecl]3.3.1/4
|
// typenames are not injected early enough, [basic.scope.pdecl]3.3.1/4
|
// indicates this should compile.
|
// indicates this should compile.
|
|
|
struct A {
|
struct A {
|
};
|
};
|
|
|
struct B : A {
|
struct B : A {
|
typedef A Parent;
|
typedef A Parent;
|
struct F {
|
struct F {
|
};
|
};
|
};
|
};
|
|
|
struct C : B {
|
struct C : B {
|
typedef B Parent;
|
typedef B Parent;
|
struct G {};
|
struct G {};
|
struct F : C::Parent::F {
|
struct F : C::Parent::F {
|
typedef C::Parent::F Parent;
|
typedef C::Parent::F Parent;
|
};
|
};
|
};
|
};
|
|
|
struct D : B {
|
struct D : B {
|
typedef B Parent;
|
typedef B Parent;
|
struct F : D::Parent::F { // finds the wrong Parent
|
struct F : D::Parent::F { // finds the wrong Parent
|
typedef D::Parent::F Parent;
|
typedef D::Parent::F Parent;
|
};
|
};
|
};
|
};
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.