https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94459
--- Comment #2 from Domani Hannes <ssbssa at yahoo dot de> --- (In reply to Jakub Jelinek from comment #1) > Looking through DW_TAG_const_type seems insufficient to me, can't there be > other qualifications (at least DW_TAG_volatile_type, perhaps in various > orders)? > So wouldn't be better a loop as long as die and die->die_tag is one of > dwarf_qual_info[?].t or DW_TAG_{rvalue_}reference, use die = get_AT_ref > (die, DW_AT_type); ? You're probably right, I wasn't sure if the use of 'auto' allows e.g. 'volatile' as well, so I just stuck with the ones I knew about.