re PR c++/34269 (Incomplete __decltype/__typeof expressions accepted)
authorJakub Jelinek <jakub@redhat.com>
Wed, 12 Nov 2008 17:33:48 +0000 (18:33 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 12 Nov 2008 17:33:48 +0000 (18:33 +0100)
commit192657ec62c5bcda9b53987bd01444b23099be3b
tree489eff22bba1f711212b8c2896a160ef04a66e78
parent27a4e07281d191dff6b8c109b51a62d8b0731210
re PR c++/34269 (Incomplete __decltype/__typeof expressions accepted)

PR c++/34269
* parser.c (cp_parser_simple_declaration): Don't commit
to tentative parse if parse errors were seen.

* g++.dg/cpp0x/decltype13.C: New test.
* g++.dg/cpp0x/decltype-33837.C: Adjust dg-error pattern.
* g++.dg/cpp0x/pr33839.C: Likewise.

From-SVN: r141793
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/decltype-33837.C
gcc/testsuite/g++.dg/cpp0x/decltype13.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/pr33839.C