https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87757
Aldy Hernandez changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87757
--- Comment #4 from David Malcolm ---
Aldy: do you remember why the arguments need to have the same location as the
call itself?
The first case works because during gimplify_arg it's wrapped in a NOP_EXPR
which is casting from char[] to char *,
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87757
--- Comment #3 from David Malcolm ---
prior to that gimplify.c code, the location of the argument is correctly set,
as:
t.c:8:31: note:
8 | __builtin_sprintf (e, "%s", &a[0]);
| ^
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87757
David Malcolm changed:
What|Removed |Added
CC||aldyh at gcc dot gnu.org
--- Comment #2
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87757
Martin Sebor changed:
What|Removed |Added
Keywords||diagnostic
CC|