mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-12 18:05:09 +08:00
another expr/decl ambiguity test
From-SVN: r21828
This commit is contained in:
parent
074900555d
commit
e368d5b332
13
gcc/testsuite/g++.old-deja/g++.brendan/parse6.C
Normal file
13
gcc/testsuite/g++.old-deja/g++.brendan/parse6.C
Normal file
@ -0,0 +1,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 { };
|
||||
|
||||
main() {
|
||||
A a = a;
|
||||
A b(b); // ERROR -
|
||||
}
|
Loading…
Reference in New Issue
Block a user