diff options
author | Jakub Jelinek <jakub@redhat.com> | 2018-01-18 00:42:36 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2018-01-18 00:42:36 +0100 |
commit | cfb14840b842698f12ad82ab42ed4b8445af8992 (patch) | |
tree | c2feaf80b936a5497948de764c734bf6578d3319 /libcpp/errors.c | |
parent | a3b11faf7e1920d972eb98b86dc826b107f979a0 (diff) | |
download | gcc-cfb14840b842698f12ad82ab42ed4b8445af8992.zip gcc-cfb14840b842698f12ad82ab42ed4b8445af8992.tar.gz gcc-cfb14840b842698f12ad82ab42ed4b8445af8992.tar.bz2 |
re PR c++/83824 (ICE on invalid C++ code with alignas: in chainon, at tree.c:3037)
PR c++/83824
* parser.c (attr_chainon): New function.
(cp_parser_label_for_labeled_statement, cp_parser_decl_specifier_seq,
cp_parser_namespace_definition, cp_parser_init_declarator,
cp_parser_type_specifier_seq, cp_parser_parameter_declaration,
cp_parser_gnu_attributes_opt): Use it.
(cp_parser_member_declaration, cp_parser_objc_class_ivars,
cp_parser_objc_struct_declaration): Likewise. Don't reset
prefix_attributes if attributes is error_mark_node.
* g++.dg/cpp0x/pr83824.C: New test.
From-SVN: r256823
Diffstat (limited to 'libcpp/errors.c')
0 files changed, 0 insertions, 0 deletions