Re: [PATCH] improve constant string length folding (PR 89688)

2019-03-19 Thread Jeff Law
On 3/13/19 8:17 PM, Martin Sebor wrote: > PR 89688 points out a bogus warning about an unterminated > character array argument to strlen.  The root cause is > an oversight in the transformation of braced initializer lists > to STRING_CSTs where the solution implemented last summer only > considers 

[PATCH] improve constant string length folding (PR 89688)

2019-03-13 Thread Martin Sebor
PR 89688 points out a bogus warning about an unterminated character array argument to strlen. The root cause is an oversight in the transformation of braced initializer lists to STRING_CSTs where the solution implemented last summer only considers one-dimensional arrays and skips more complex