https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119878
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
??
There are no nostring attributes in the above addition and it is syntactically
incorrect as well (multiple places).
When I compile:
static const char single[] __attribute__((nonstring)) = "ohai";
_Static_assert (__builtin_has_attribute (single, nonstring));
static const char multi2[][4] __attribute__((nonstring)) = { "hola" };
_Static_assert (__builtin_has_attribute (multi2, nonstring));
static const char multi3[][16][5] __attribute__((nonstring)) = { { "hello" } };
_Static_assert (__builtin_has_attribute (multi3, nonstring));
it compiles just fine.