Commit 92a5f2ba by Marek Polacek Committed by Marek Polacek

re PR c/71418 (gcc ICE on x86_64-linux-gnu in min_align_of_type, at stor-layout.c:2402)

	PR c/71418
	* c-decl.c (grokdeclarator): Check TYPE_P.

	* gcc.dg/noncompile/pr71418.c: New test.

From-SVN: r237195
parent 6c40eb00
2016-06-08 Marek Polacek <polacek@redhat.com>
PR c/71418
* c-decl.c (grokdeclarator): Check TYPE_P.
2016-06-07 David Malcolm <dmalcolm@redhat.com>
* c-parser.c (c_parser_postfix_expression): In __builtin_offsetof
......
......@@ -6313,7 +6313,7 @@ grokdeclarator (const struct c_declarator *declarator,
}
else if (TREE_CODE (type) == FUNCTION_TYPE)
error_at (loc, "alignment specified for function %qE", name);
else if (declspecs->align_log != -1)
else if (declspecs->align_log != -1 && TYPE_P (type))
{
alignas_align = 1U << declspecs->align_log;
if (alignas_align < min_align_of_type (type))
......
2016-06-08 Marek Polacek <polacek@redhat.com>
PR c/71418
* gcc.dg/noncompile/pr71418.c: New test.
2016-06-07 Jan Hubicka <hubicka@ucw.cz>
* gcc.dg/ipa/inlinehint-4.c: Disable partial inlining.
......
/* PR c/71418 */
/* { dg-do compile } */
_Alignas (int) int a[7++]; /* { dg-error "lvalue required" } */
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