https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115359
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hubicka at gcc dot gnu.org, | |rguenth at gcc dot gnu.org --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- The issue is probably get_odr_name_for_type returning sth non-NULL for both. But yeah, duping before copying looks wrong since we seem to expect NULL eventually. if (name1 = cplus_demangle (odr1, opts)) { name1 = xstrdup (name1); ... might be even better. Honza?