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
This commit is contained in:
Gabriel Dos Reis 2002-12-29 15:13:12 +00:00 committed by Gabriel Dos Reis
parent 848eed9249
commit 53101fd1dd
5 changed files with 13 additions and 20 deletions

View File

@ -1,3 +1,10 @@
2002-12-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
* 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 <gdr@integrable-solutions.net>
* g++.dg/parse/angle-bracket.C (main): No longer fails.

View File

@ -5,5 +5,5 @@ namespace N { }
namespace M
{
typedef struct { } N; // { dg-bogus ".*" "" { xfail *-*-* } }
typedef struct { } N;
}

View File

@ -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
}

View File

@ -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));
}

View File

@ -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);
}