diff options
author | Marek Polacek <polacek@redhat.com> | 2017-02-22 19:31:49 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2017-02-22 19:31:49 +0000 |
commit | 78af14ae0e9fd1b698a1fde2ac43dcc31188e3b1 (patch) | |
tree | c8ac56e87a30aaa556489b6ede9d585044030122 /gcc/tree.c | |
parent | 3b2a007843c9ccb740b05980358f13c75dc296b0 (diff) | |
download | gcc-78af14ae0e9fd1b698a1fde2ac43dcc31188e3b1.zip gcc-78af14ae0e9fd1b698a1fde2ac43dcc31188e3b1.tar.gz gcc-78af14ae0e9fd1b698a1fde2ac43dcc31188e3b1.tar.bz2 |
re PR c++/79653 (ICE on invalid c++ code in cp_check_const_attributes in cp/decl2.c:1423)
PR c++/79653
* parser.c (cp_parser_std_attribute_spec): Don't build the attribute
if the alignas expression is erroneous.
* pt.c (tsubst_attribute): If tsubst_pack_expansion fails, return
error_mark_node.
* g++.dg/cpp0x/alignas10.C: New test.
* g++.dg/cpp0x/alignas9.C: New test.
From-SVN: r245657
Diffstat (limited to 'gcc/tree.c')
0 files changed, 0 insertions, 0 deletions