George R Goffe via Bug reports for GNU grep <bug-grep@gnu.org> writes:
> Apparently the gcc folks have been busy, tightening up the
> "rules". I'm not sure this isn't one so I'm reporting it.

> pcresearch.c:222:23: error: initializer-string for array of 'char' is too 
> long [-Werror=unterminated-string-initialization]
>   222 |         wprefix[10] = "(?<!\\w)(?:", wsuffix[7] = ")(?!\\w)";
>       |                       ^~~~~~~~~~~~~

That is strange:  I can't find any statement that recent C standards
have removed the special case "initialize a char array that doesn't have
room for the final NULL from a string literal".

Dale



Reply via email to