X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.bugs%2F900511_02.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.bugs%2F900511_02.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=cef71c0a12e2e6c5714847963725f6a24d81b869;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900511_02.C b/gcc/testsuite/g++.old-deja/g++.bugs/900511_02.C deleted file mode 100644 index cef71c0a..00000000 --- a/gcc/testsuite/g++.old-deja/g++.bugs/900511_02.C +++ /dev/null @@ -1,21 +0,0 @@ -// g++ 1.37.1 bug 900511_02 - -// 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 - -// cfront 2.0 passes this test. - -enum enum0 { enum0_value_0 }; - -struct struct0 { - int enum0; - void member_function (enum0 e); // ERROR - invalid use of struct-local member -}; - -void class0::member_function (enum0 e) { // ERROR - syntax error -} - -int main () { return 0; }