https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85056
--- Comment #2 from Tom de Vries <vries at gcc dot gnu.org> --- Created attachment 43745 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43745&action=edit Tentative patch with testcase (In reply to cesar from comment #1) > Created attachment 43744 [details] > WIP patch > > It looks like nvptx_assmeble_decl_begin ignores the array type information. > This patch records whether it has detected an aggregate type on entry to > that function. Then it emits an empty '[]' if it has detected an aggregate > type with out a defined size. Added test-case to patch. Approved for stage4 trunk if testing doesn't show any problems.