Hi, PR 66181 is about ICE in verify_type that complains that type and its variant differs by TYPE_NO_FORCE_BLK. This flag is kind-of internal to stor-layout.c, so the divergence may not matter (I am not sure about it as C++ FE finalizes type variants separately and thus it may trip to different values) but I think it is cleaner to copy it to all variants like we copy other stuff set by stor layout.
Bootstrapped/regtested x86_64-linux and the patch reportedly fixes the ARM ICE OK? Honza PR middle-end/66181 * stor-layout.c (finalize_type_size): Also copy TYPE_NO_FORCE_BLK. Index: stor-layout.c =================================================================== --- stor-layout.c (revision 222869) +++ stor-layout.c (working copy) @@ -1834,6 +1834,7 @@ TYPE_ALIGN (variant) = valign; TYPE_PRECISION (variant) = precision; SET_TYPE_MODE (variant, mode); + TYPE_NO_FORCE_BLK (variant) = TYPE_NO_FORCE_BLK (type); } } }