URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 305 |
Rev 384 |
// { dg-do assemble }
|
// { dg-do assemble }
|
// g++ 1.37.1 bug 900511_03
|
// g++ 1.37.1 bug 900511_03
|
|
|
// g++ does not properly shadow names of types with names of data members
|
// g++ does not properly shadow names of types with names of data members
|
// in cases where the type names in question are used in the context of
|
// in cases where the type names in question are used in the context of
|
// formal parameters lists for member functions.
|
// formal parameters lists for member functions.
|
|
|
// keywords: typedef names, shadowing, scope, formal parameter list
|
// keywords: typedef names, shadowing, scope, formal parameter list
|
|
|
class class0;
|
class class0;
|
|
|
struct struct1 {
|
struct struct1 {
|
int class0;
|
int class0;
|
void member_function (class0 *); // { dg-error "" } invalid use of struct-local member
|
void member_function (class0 *); // { dg-error "" } invalid use of struct-local member
|
};
|
};
|
|
|
void class1::member_function (class0 *p) { // { dg-error "" }
|
void class1::member_function (class0 *p) { // { dg-error "" }
|
}
|
}
|
|
|
int main () { return 0; }
|
int main () { return 0; }
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.