Commit 1f258a55 by Jakub Jelinek Committed by Jakub Jelinek

re PR c++/78341 (ICE on invalid C++ code on x86_64-linux-gnu (internal compiler…

re PR 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))

	PR c++/78341
	* parser.c (cp_parser_std_attribute_spec): Remove over-eager
	assertion.  Formatting fix.

	* g++.dg/cpp0x/pr78341.C: New test.

From-SVN: r244329
parent 6b5b4e9c
2017-01-11 Jakub Jelinek <jakub@redhat.com>
PR c++/78341
* parser.c (cp_parser_std_attribute_spec): Remove over-eager
assertion. Formatting fix.
PR c++/72813
* decl2.c (c_parse_final_cleanups): Set flag_syntax_only to 1 after
writing PCH file.
......
......@@ -24925,11 +24925,7 @@ cp_parser_std_attribute_spec (cp_parser *parser)
if (!cp_parser_parse_definitely (parser))
{
gcc_assert (alignas_expr == error_mark_node
|| alignas_expr == NULL_TREE);
alignas_expr =
cp_parser_assignment_expression (parser);
alignas_expr = cp_parser_assignment_expression (parser);
if (alignas_expr == error_mark_node)
cp_parser_skip_to_end_of_statement (parser);
if (alignas_expr == NULL_TREE
2017-01-11 Jakub Jelinek <jakub@redhat.com>
PR c++/78341
* g++.dg/cpp0x/pr78341.C: New test.
2017-01-11 Martin Sebor <msebor@redhat.com>
PR c/78768
......
// PR c++/78341
// { dg-do compile { target c++11 } }
alignas (alignas double // { dg-error "" }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment