re PR c++/78341 (ICE on invalid C++ code on x86_64-linux-gnu (internal compiler...
authorJakub Jelinek <jakub@redhat.com>
Wed, 11 Jan 2017 18:09:58 +0000 (19:09 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 11 Jan 2017 18:09:58 +0000 (19:09 +0100)
commit1f258a55a9df39ecef35d0049c3bf703d6cdbe53
treefe49ad9a513ca5b15d77702ed55765bc53bd6cc0
parent6b5b4e9cece66553b75c1c8c9e7ecae6c8b27bb0
re PR c++/78341 (ICE on invalid C++ code on x86_64-linux-gnu  (internal compiler error: in cp_parser_std_attribute_spec, at cp/parser.c:24597))

PR c++/78341
* parser.c (cp_parser_std_attribute_spec): Remove over-eager
assertion.  Formatting fix.

* g++.dg/cpp0x/pr78341.C: New test.

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