This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/86532] [9 Regression] Wrong code due to a wrong strlen folding starting with r262522
- From: "sirl at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 17 Jul 2018 16:32:07 +0000
- Subject: [Bug tree-optimization/86532] [9 Regression] Wrong code due to a wrong strlen folding starting with r262522
- Auto-submitted: auto-generated
- References: <bug-86532-4@http.gcc.gnu.org/bugzilla/>
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