https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61595
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- I don't see anything wrong on the emitted DWARF. DW_AT_type on DW_TAG_subrange_type is the type of the array indexes, not the array elements. The type of the array elements is DW_AT_type on DW_TAG_array_type.