[Bug c++/65690] [5 Regression] typedef alignment lost since r219705

hubicka at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Apr 7 22:13:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65690

--- Comment #2 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
I see, C++ has special code for building qualified array types.
I would say that build_cplus_array_type should have a path where it is building
a variant and go via build_distinct_type_copy only adjusting the array type w/o
re-doing the layout.

This way also the type attributes and other stuff will be preserved.



More information about the Gcc-bugs mailing list