re PR c++/70513 (ICE on invalid C++ code on x86_64-linux-gnu: Segmentation fault)
authorMarek Polacek <polacek@redhat.com>
Thu, 21 Apr 2016 16:52:51 +0000 (16:52 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Thu, 21 Apr 2016 16:52:51 +0000 (16:52 +0000)
commitaedf4e122b56aa6bf977e42adf198b49511aa0f3
tree51b762e91374034a2271b2b44fec2c9b02116a91
parent2074d80a607e13d3e18b550ae66e7c3be5135d4a
re PR c++/70513 (ICE on invalid C++ code on x86_64-linux-gnu: Segmentation fault)

PR c++/70513
* parser.c (cp_parser_enum_specifier): Check and possibly error for
extra qualification.

* g++.dg/cpp0x/forw_enum12.C: New test.
* g++.dg/cpp0x/forw_enum13.C: New test.

From-SVN: r235347
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/forw_enum12.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/forw_enum13.C [new file with mode: 0644]