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

--- Comment #10 from Alejandro Colomar <alx at kernel dot org> ---
(In reply to Jakub Jelinek from comment #8)
> In that case the warning should be also restricted to the case when ({ comes
> from macro expansion and the compound literal from macro argument (not sure
> if the last one can be differentiated from locations).

If that's doable, then I agree.

If not, I think warning on any address of literal within ({}) would be fine.  I
have never found any use of ({}) outside of a macro.  And taking the address of
a literal within the body of a macro is very rare (with the literal being
written inside the macro).

Reply via email to