[Bug c++/78341] ICE on invalid C++ code on x86_64-linux-gnu (internal compiler error: in cp_parser_std_attribute_spec, at cp/parser.c:24597)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78341 --- Comment #7 from Jakub Jelinek --- Author: jakub Date: Tue May 30 07:55:06 2017 New Revision: 248639 URL: https://gcc.gnu.org/viewcvs?rev=248639=gcc=rev Log: Backported from mainline 2017-01-11 Jakub JelinekPR c++/78341 * parser.c (cp_parser_std_attribute_spec): Remove over-eager assertion. Formatting fix. * g++.dg/cpp0x/pr78341.C: New test. Added: branches/gcc-5-branch/gcc/testsuite/g++.dg/cpp0x/pr78341.C Modified: branches/gcc-5-branch/gcc/cp/ChangeLog branches/gcc-5-branch/gcc/cp/parser.c branches/gcc-5-branch/gcc/testsuite/ChangeLog
[Bug c++/78341] ICE on invalid C++ code on x86_64-linux-gnu (internal compiler error: in cp_parser_std_attribute_spec, at cp/parser.c:24597)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78341 --- Comment #6 from Jakub Jelinek --- Author: jakub Date: Tue Jan 17 20:34:17 2017 New Revision: 244554 URL: https://gcc.gnu.org/viewcvs?rev=244554=gcc=rev Log: Backported from mainline 2017-01-11 Jakub JelinekPR c++/78341 * parser.c (cp_parser_std_attribute_spec): Remove over-eager assertion. Formatting fix. * g++.dg/cpp0x/pr78341.C: New test. Added: branches/gcc-6-branch/gcc/testsuite/g++.dg/cpp0x/pr78341.C Modified: branches/gcc-6-branch/gcc/cp/ChangeLog branches/gcc-6-branch/gcc/cp/parser.c branches/gcc-6-branch/gcc/testsuite/ChangeLog
[Bug c++/78341] ICE on invalid C++ code on x86_64-linux-gnu (internal compiler error: in cp_parser_std_attribute_spec, at cp/parser.c:24597)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78341 Jakub Jelinek changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #5 from Jakub Jelinek --- Fixed.
[Bug c++/78341] ICE on invalid C++ code on x86_64-linux-gnu (internal compiler error: in cp_parser_std_attribute_spec, at cp/parser.c:24597)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78341 --- Comment #4 from Jakub Jelinek --- Author: jakub Date: Wed Jan 11 18:09:58 2017 New Revision: 244329 URL: https://gcc.gnu.org/viewcvs?rev=244329=gcc=rev Log: PR c++/78341 * parser.c (cp_parser_std_attribute_spec): Remove over-eager assertion. Formatting fix. * g++.dg/cpp0x/pr78341.C: New test. Added: trunk/gcc/testsuite/g++.dg/cpp0x/pr78341.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/parser.c trunk/gcc/testsuite/ChangeLog
[Bug c++/78341] ICE on invalid C++ code on x86_64-linux-gnu (internal compiler error: in cp_parser_std_attribute_spec, at cp/parser.c:24597)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78341 --- Comment #3 from Jason Merrill --- (In reply to Jakub Jelinek from comment #2) > Shall we just remove the assertion? Sounds good.
[Bug c++/78341] ICE on invalid C++ code on x86_64-linux-gnu (internal compiler error: in cp_parser_std_attribute_spec, at cp/parser.c:24597)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78341 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org, ||jason at gcc dot gnu.org Target Milestone|--- |7.0 --- Comment #2 from Jakub Jelinek --- Probably just too eager assertion. 24854 cp_parser_parse_tentatively (parser); 24855 alignas_expr = cp_parser_type_id (parser); 24856 24857 if (!cp_parser_parse_definitely (parser)) 24858 { 24859 gcc_assert (alignas_expr == error_mark_node 24860 || alignas_expr == NULL_TREE); alignas_expr is REAL_TYPE double, but it failed to parse anyway due to the missing '('. Shall we just remove the assertion?
[Bug c++/78341] ICE on invalid C++ code on x86_64-linux-gnu (internal compiler error: in cp_parser_std_attribute_spec, at cp/parser.c:24597)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78341 Martin Liška changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever confirmed|0 |1
[Bug c++/78341] ICE on invalid C++ code on x86_64-linux-gnu (internal compiler error: in cp_parser_std_attribute_spec, at cp/parser.c:24597)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78341 Martin Liška changed: What|Removed |Added Last reconfirmed||2016-11-14 CC||marxin at gcc dot gnu.org Summary|crash on invalid C++ code |ICE on invalid C++ code on |on x86_64-linux-gnu |x86_64-linux-gnu (internal |(internal compiler error: |compiler error: in |in |cp_parser_std_attribute_spe |cp_parser_std_attribute_spe |c, at cp/parser.c:24597) |c, at cp/parser.c:24597)| Known to fail||4.9.4, 5.4.0, 6.2.0 --- Comment #1 from Martin Liška --- Confirmed, all releases supporting -std=c++14 ICE.