This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80241

--- Comment #5 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Sat Jun 24 10:50:08 2017
New Revision: 249621

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]