https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117388

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
We'll use DECL_NAME, I guess for clones we don't set that - but I'm not sure
why.

Note the language used is available on the TRANSLATION_UNIT_DECL which
eventually is reached following DECL_CONTEXT.  But I agree doing specific
demangling based on that is a bit ugly, so I'd say DECL_NAME should be
better in this case?

Reply via email to