Commit 53101fd1 by Gabriel Dos Reis Committed by Gabriel Dos Reis

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
parent 848eed92
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.
......
......@@ -5,5 +5,5 @@ namespace N { }
namespace M
{
typedef struct { } N; // { dg-bogus ".*" "" { xfail *-*-* } }
typedef struct { } N;
}
// 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
}
// 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));
}
// 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);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment