8sa1-gcc/gcc/testsuite/g++.old-deja/g++.brendan/parse6.C
Jason Merrill 4495766362 fix implicit int
From-SVN: r23760
1998-11-22 18:23:45 -05:00

14 lines
351 B
C

// 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 *-*-*
}