https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102195
--- Comment #2 from Indu Bhagat <ibhagatgnu at gmail dot com> --- (In reply to Andrew Pinski from comment #1) > I think this is a dup of bug 8354. Possible. It looks like two distinct symptoms, but seem to be originating from the same underlying issue. I don't have enough expertise here to comment further. When I looked around a bit, the difference I noted is that in the function dwarf2out.c:modified_type_die, the qualified_type returned is NULL for typedef1.c but non-NULL for typedef3.c. dwarf2out.c:modified_type_die () : /* See if we already have the appropriately qualified variant of this type. */ qualified_type = get_qualified_type (type, cv_quals); Noting that the TREE information is organized differently for array vs not.