From: Gabriel Dos Reis Date: Sun, 29 Dec 2002 15:13:12 +0000 (+0000) Subject: anon-struct.C: No longer fails X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=53101fd1dd826ffcb98a51255b41f285d44cbddb;p=gcc.git anon-struct.C: No longer fails * g++.dg/other/anon-struct.C: No longer fails * g++.old-deja/g++.brendan/parse4.C: Likewise. * g++.old-deja/g++.brendan/parse5.C: Likewise. * g++.old-deja/g++.brendan/parse6.C: Likewise. From-SVN: r60602 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c5c16d0075f..8dc845141f5 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2002-12-29 Gabriel Dos Reis + + * g++.dg/other/anon-struct.C: No longer fails + * g++.old-deja/g++.brendan/parse4.C: Likewise. + * g++.old-deja/g++.brendan/parse5.C: Likewise. + * g++.old-deja/g++.brendan/parse6.C: Likewise. + 2002-12-28 Gabriel Dos Reis * g++.dg/parse/angle-bracket.C (main): No longer fails. diff --git a/gcc/testsuite/g++.dg/other/anon-struct.C b/gcc/testsuite/g++.dg/other/anon-struct.C index d045910cc3f..a23e8094e4a 100644 --- a/gcc/testsuite/g++.dg/other/anon-struct.C +++ b/gcc/testsuite/g++.dg/other/anon-struct.C @@ -5,5 +5,5 @@ namespace N { } namespace M { - typedef struct { } N; // { dg-bogus ".*" "" { xfail *-*-* } } + typedef struct { } N; } diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/parse4.C b/gcc/testsuite/g++.old-deja/g++.brendan/parse4.C index e31af0b9d65..48f37e5484e 100644 --- a/gcc/testsuite/g++.old-deja/g++.brendan/parse4.C +++ b/gcc/testsuite/g++.old-deja/g++.brendan/parse4.C @@ -1,10 +1,5 @@ // Build don't link: -// this is marked as an expected error because it evidences an -// ambiguity in the grammar between expressions and declarations. -// when the parser's been cleaned up or rewritten, the error -// marker can go away, since it'll no longer occur. - class B { public: @@ -12,13 +7,13 @@ public: void f() {} }; -int g() { return 0; } // gets bogus error - referenced below +int g() { return 0; } // referenced below int main() { int try1; B( try1 ).f(); // no syntax error B b( g() ); // no syntax error - B( ::g() ).f(); // gets bogus error - treated as decl XFAIL *-*-* - B( g() ).f(); // gets bogus error - treated as decl XFAIL *-*-* + B( ::g() ).f(); // no syntax error + B( g() ).f(); // no syntax error } diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/parse5.C b/gcc/testsuite/g++.old-deja/g++.brendan/parse5.C index 81a5fe649b1..9895da007a3 100644 --- a/gcc/testsuite/g++.old-deja/g++.brendan/parse5.C +++ b/gcc/testsuite/g++.old-deja/g++.brendan/parse5.C @@ -1,9 +1,5 @@ // Build don't link: -// this is marked as an expected error because it evidences an -// ambiguity in the grammar between expressions and declarations. -// when the parser's been cleaned up or rewritten, the error -// marker can go away, since it'll no longer occur. class ptr8 { @@ -21,5 +17,5 @@ public: int main() { unsigned char b[3]; - buf<3> b2(ptr8(&b[0],3)); // gets bogus error - XFAIL *-*-* + buf<3> b2(ptr8(&b[0],3)); } diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/parse6.C b/gcc/testsuite/g++.old-deja/g++.brendan/parse6.C index d5ece069103..9468011f65c 100644 --- a/gcc/testsuite/g++.old-deja/g++.brendan/parse6.C +++ b/gcc/testsuite/g++.old-deja/g++.brendan/parse6.C @@ -1,13 +1,8 @@ // Build don't link: -// this is marked as an expected error because it evidences an -// ambiguity in the grammar between expressions and declarations. -// when the parser's been cleaned up or rewritten, the error -// marker can go away, since it'll no longer occur. - class A { }; int main() { A a = a; - A b(b); // gets bogus error - XFAIL *-*-* + A b(b); }