[Bug tree-optimization/86914] gcc 8.1 -O2 generates wrong code with strlen() of pointers within one-element arrays of structures

even.rouault at spatialys dot com gcc-bugzilla@gcc.gnu.org
Sat Aug 11 12:05:00 GMT 2018


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

--- Comment #1 from Even Rouault <even.rouault at spatialys dot com> ---
Interstingly with gcc 8.2, char c[0] doesn't generate the appropriate code. The
only way of making it work is to use char c[] syntax


More information about the Gcc-bugs mailing list