[Bug c/115566] Arrays of character type initialized with parenthesized string literals shouldn't be diagnosed with -pedantic (at least in C2Y)
jsm28 at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Mar 23 20:25:57 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115566
--- Comment #13 from Joseph S. Myers <jsm28 at gcc dot gnu.org> ---
I think it's clear that where the question is the *syntax* of an initializer,
an actual string literal token is required up to C23 (and accepting _Generic
there is a bug); it's only for semantic properties such as "lvalue" and
"integer constant expression" and "immediate operand of cast" that parentheses
and _Generic should be transparent.
More information about the Gcc-bugs
mailing list