[Bug c++/80241] [5/6 Regression] Broken error message + ICE with invalid attribute

2017-06-24 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80241

--- Comment #5 from Marek Polacek  ---
Author: mpolacek
Date: Sat Jun 24 10:50:08 2017
New Revision: 249621

URL: https://gcc.gnu.org/viewcvs?rev=249621=gcc=rev
Log:
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.

Added:
branches/gcc-6-branch/gcc/testsuite/g++.dg/cpp0x/alignas11.C
Modified:
branches/gcc-6-branch/gcc/cp/ChangeLog
branches/gcc-6-branch/gcc/cp/error.c
branches/gcc-6-branch/gcc/cp/parser.c
branches/gcc-6-branch/gcc/testsuite/ChangeLog

[Bug c++/80241] [5/6 Regression] Broken error message + ICE with invalid attribute

2017-04-18 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80241

Marek Polacek  changed:

   What|Removed |Added

Summary|[5/6/7 Regression] Broken   |[5/6 Regression] Broken
   |error message  + ICE with   |error message  + ICE with
   |invalid attribute   |invalid attribute

--- Comment #4 from Marek Polacek  ---
Fixed on trunk so far.