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

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
I would suggest to set TREE_ASM_WRITTEN if a static function is defined by a
toplevel asm and check that in the diagnostic.

Reply via email to