https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98846
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic, rejects-valid
Ever confirmed|0 |1
Last reconfirmed| |2021-01-27
Status|UNCONFIRMED |NEW
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
I agree we should not warn/error for this GCC extension given we
ignore the register spec if you do not use the register keyword:
t.c:3:7: warning: ignoring asm-specifier for non-static local variable 'edx'
int edx asm("edx");
^~~
(that's diagnostic from the C frontend, the C++ frontend ignores it the
same but emits no diagnostic, another bug)