/cp
commita2679d0949484ead513aee5ae48b3a6c89ade4b4
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 3 Oct 2013 22:50:59 +0000 (3 22:50 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 3 Oct 2013 22:50:59 +0000 (3 22:50 +0000)
tree632ec45b1b3a83b404fb65ccd1659df4baecd037
parent73a9c8471a75c44d84c0a79b277241dc3907c1a3
/cp
2013-10-04  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/58584
* decl2.c (save_template_attributes): Handle error_mark_node as
*attr_p argument.
(cp_check_const_attributes): Likewise for attributes.
* parser.c (cp_parser_std_attribute_spec): When alignas_expr is an
error_mark_node call cp_parser_skip_to_end_of_statement.

/testsuite
2013-10-04  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/58584
* g++.dg/cpp0x/gen-attrs-55.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@203193 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/gen-attrs-55.C [new file with mode: 0644]