http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55245
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-11-26 09:49:23 UTC --- I'd say it should be the FE's responsibility to layout all needed types, so it should be done either somewhere when the type ARRAY_REF is created or finalized, or in cp-gimplify.c at latest.