[Bug c++/79786] ICE tree check: expected class 'type', have 'declaration' (var_decl) in iamcu_alignment, at config/i386/i386.c:30263
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79786 --- Comment #3 from Andrew Pinski --- Note the bug was introduced at r5-869.
[Bug c++/79786] ICE tree check: expected class 'type', have 'declaration' (var_decl) in iamcu_alignment, at config/i386/i386.c:30263
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79786 Andrew Pinski changed: What|Removed |Added Component|target |c++ --- Comment #2 from Andrew Pinski --- Simple fix: diff --git a/gcc/cp/rtti.c b/gcc/cp/rtti.c index fcb33088a21..a2705f1ca9f 100644 --- a/gcc/cp/rtti.c +++ b/gcc/cp/rtti.c @@ -1682,7 +1682,7 @@ emit_tinfo_decl (tree decl) /* Avoid targets optionally bumping up the alignment to improve vector instruction accesses, tinfo are never accessed this way. */ #ifdef DATA_ABI_ALIGNMENT - SET_DECL_ALIGN (decl, DATA_ABI_ALIGNMENT (decl, TYPE_ALIGN (TREE_TYPE (decl; + SET_DECL_ALIGN (decl, DATA_ABI_ALIGNMENT (TREE_TYPE (decl), TYPE_ALIGN (TREE_TYPE (decl; DECL_USER_ALIGN (decl) = true; #endif return true; if anyone cares about iamcu and RTTI, please take this patch over.
[Bug c++/79786] ICE tree check: expected class 'type', have 'declaration' (var_decl) in iamcu_alignment, at config/i386/i386.c:30263
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79786 Marek Polacek changed: What|Removed |Added Keywords||ice-on-valid-code Status|UNCONFIRMED |NEW Last reconfirmed||2017-03-01 CC||mpolacek at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Marek Polacek --- Confirmed. G++ 6 ICEs too and 5 doesn't have -miamcu.