[Bug tree-optimization/86532] [9 Regression] Wrong code due to a wrong strlen folding starting with r262522
sirl at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jul 17 17:23:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86532
Franz Sirl <sirl at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sirl at gcc dot gnu.org
--- Comment #15 from Franz Sirl <sirl at gcc dot gnu.org> ---
(In reply to Bernd Edlinger from comment #8)
> $ cat part.c
>
> const char a[2][3] = { "121", "1" };
FWIW, MSVC warns like this:
part.c(2): warning C4295: 'a': array is too small to include a terminating null
character
More information about the Gcc-bugs
mailing list