| 1 |
// { dg-do assemble } |
| 2 |
// g++ 1.37.1 bug 900511_03 |
| 3 |
|
| 4 |
// g++ does not properly shadow names of types with names of data members |
| 5 |
// in cases where the type names in question are used in the context of |
| 6 |
// formal parameters lists for member functions. |
| 7 |
|
| 8 |
// keywords: typedef names, shadowing, scope, formal parameter list |
| 9 |
|
| 10 |
class class0; |
| 11 |
|
| 12 |
struct struct1 { |
| 13 |
int class0; |
| 14 |
void member_function (class0 *); // { dg-error "" } invalid use of struct-local member |
| 15 |
}; |
| 16 |
|
| 17 |
void class1::member_function (class0 *p) { // { dg-error "" } |
| 18 |
} |
| 19 |
|
| 20 |
int main () { return 0; } |