PR c++/80241 - ICE with alignas pack expansion.
authorMarek Polacek <polacek@redhat.com>
Tue, 18 Apr 2017 09:38:55 +0000 (09:38 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 18 Apr 2017 09:38:55 +0000 (09:38 +0000)
commitd6e3e8a54cfb57df98db48d728844231f24c0661
tree3367d671ce30a920158423ae9001d9c05b16c377
parentbe7c73ae358319c5f9541f2e2f7a5dc37ec0e116
PR c++/80241 - ICE with alignas pack expansion.

* error.c (dump_expr): Handle TREE_LIST.
* parser.c (cp_parser_std_attribute_list): Return error_mark if
make_pack_expansion returns an error.

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

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