aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/parse6.C
blob: d5ece06910305d5da49edaa76cb73a706f8563c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// 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 *-*-*
}