https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65690
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> --- (In reply to Jan Hubicka from comment #8) > I also considered just copying over the stuff that layout_decl fills. I > guess it is better than calling it and copying back TYPE_SIZE, but this is > far from being my area. Sure, that works for me too. In build_cplus_array_type we know the TYPE_ATTRIBUTES is NULL. > I think we also want to preserve attribute lists. Seems usually ../tree.c builds a distinct type for it instead, rather than variant type. And, I just think it is way too risky to also try to deal with those at this point, perhaps for stage1, but also verify what the C FE does with those, add testcases etc.