blob: d8a549aa82c01ee253ca2225e8ec1b4d8b083237 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// g++ 1.37.1 bug 900511_03
// 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
// formal parameters lists for member functions.
// keywords: typedef names, shadowing, scope, formal parameter list
class class0; // ERROR -
struct struct1 {
int class0; // ERROR -
void member_function (class0 *);
};
void class1::member_function (class0 *p) { // ERROR -
}
int main () { return 0; }
|