Subject: bug#77301: closed (Re: bug#77301: Is this a bug?)

From: [email-masked] (GNU bug Tracking System)
Date: Thu, 27 Mar 2025 17:56:02 +0000

Your bug report

#77301: Is this a bug?

which was filed against the grep package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
77301: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=77301
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#77301: Is this a bug?
From: Paul Eggert <[email-masked]>
To: George R Goffe <[email-masked]>
Cc: [email-masked]
Date: Thu, 27 Mar 2025 11:55:10 -0600
List-Id: <debbugs-submit.debbugs.gnu.org>

It's not a bug in grep. We pacified GCC's false alarm in grep commit 
08c4ce064b7f42acc023a9b28d1076a81feb6143.

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