[Bug c++/79653] [5/6/7 Regression] ICE on invalid c++ code in cp_check_const_attributes in cp/decl2.c:1423

2017-02-22 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79653 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/79653] [5/6/7 Regression] ICE on invalid c++ code in cp_check_const_attributes in cp/decl2.c:1423

2017-02-22 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79653 --- Comment #7 from Marek Polacek --- Author: mpolacek Date: Wed Feb 22 19:31:49 2017 New Revision: 245657 URL: https://gcc.gnu.org/viewcvs?rev=245657=gcc=rev Log: PR c++/79653 * parser.c (cp_parser_std_attribute_spec): Don't

[Bug c++/79653] [5/6/7 Regression] ICE on invalid c++ code in cp_check_const_attributes in cp/decl2.c:1423

2017-02-22 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79653 Marek Polacek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug c++/79653] [5/6/7 Regression] ICE on invalid c++ code in cp_check_const_attributes in cp/decl2.c:1423

2017-02-22 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79653 --- Comment #5 from Marek Polacek --- I came up with another testcase that triggers a similar ICE: template struct A { alignas(int...) char c; }; A a; q.cc:2:23: error: expansion pattern ‘#‘tree_list’ not supported by

[Bug c++/79653] [5/6/7 Regression] ICE on invalid c++ code in cp_check_const_attributes in cp/decl2.c:1423

2017-02-21 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79653 --- Comment #4 from Marek Polacek --- cp_check_const_attributes should check ARG before accessing its TREE_VALUE.

[Bug c++/79653] [5/6/7 Regression] ICE on invalid c++ code in cp_check_const_attributes in cp/decl2.c:1423

2017-02-21 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79653 --- Comment #3 from Marek Polacek --- Well, this is enough to provoke the ICE: struct alignas(int...) {}

[Bug c++/79653] [5/6/7 Regression] ICE on invalid c++ code in cp_check_const_attributes in cp/decl2.c:1423

2017-02-21 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79653 --- Comment #2 from Marek Polacek --- I'm not sure if I should reduce the testcase or just gcc-ify it. Maybe it's worth it to do the latter.

[Bug c++/79653] [5/6/7 Regression] ICE on invalid c++ code in cp_check_const_attributes in cp/decl2.c:1423

2017-02-21 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79653 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|