Subject: Is this a bug?
From: George R Goffe <[email-masked]>
To: "[email-masked]" <[email-masked]>
Date: Thu, 27 Mar 2025 06:32:06 +0000 (UTC)
List-Id: <debbugs-submit.debbugs.gnu.org>

Howdy,

Apparently the gcc folks have been busy, tightening up the "rules". I'm not sure this isn't one so I'm reporting it.

Best regards,

George...

This is output from gcc (GCC) 15.0.1 20250325 (experimental) but the non-experimental version shows the same output.

mv fgrep-t fgrep
pcresearch.c: In function 'Pcompile':
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)";
      |                       ^~~~~~~~~~~~~
pcresearch.c:222:51: error: initializer-string for array of 'char' is too long [-Werror=unterminated-string-initialization]
  222 |         wprefix[10] = "(?<!\\w)(?:", wsuffix[7] = ")(?!\\w)";
      |                                                   ^~~~~~~~~~
cc1: all warnings being treated as errors