re PR c++/77637 (ICE on x86_64-linux-gnu (Segmentation fault, tree_check, cp_parser_s...
authorJakub Jelinek <jakub@redhat.com>
Tue, 20 Sep 2016 15:16:55 +0000 (17:16 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 20 Sep 2016 15:16:55 +0000 (17:16 +0200)
commit590b62e90d6d86e68442ffa608c7c6e5653736d5
tree229e839167623726277acaa76b17ab8cf5af96ab
parent377f30c00f3b8b8b0da748dbb9d988fa67a8ec2f
re PR c++/77637 (ICE on x86_64-linux-gnu (Segmentation fault, tree_check, cp_parser_std_attribute_list...))

PR c++/77637
* parser.c (cp_parser_std_attribute_list): Reject ... without
preceding attribute.

* g++.dg/cpp0x/gen-attrs-62.C: New test.

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