From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 27 02:32:26 2025 Received: (at submit) by debbugs.gnu.org; 27 Mar 2025 06:32:26 +0000 Received: from localhost ([127.0.0.1]:46992 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1txgmv-0005aq-Jj for submit@debbugs.gnu.org; Thu, 27 Mar 2025 02:32:26 -0400 Received: from lists.gnu.org ([2001:470:142::17]:56128) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1txgmt-0005Zr-Es for submit@debbugs.gnu.org; Thu, 27 Mar 2025 02:32:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1txgml-0000uW-Tp for bug-grep@gnu.org; Thu, 27 Mar 2025 02:32:15 -0400 Received: from sonic316-22.consmr.mail.ne1.yahoo.com ([66.163.187.148]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1txgmj-0002wf-Ec for bug-grep@gnu.org; Thu, 27 Mar 2025 02:32:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1743057129; bh=bxt3h7TUxBz/bi/4QFAICzhQNhomFP/JjXYLH3MtOV4=; h=Date:From:Reply-To:To:Subject:References:From:Subject:Reply-To; b=YsbrjCcxfE4tGdiEqktaOXcpOf6kzoh0XLRzW3xczC44gO1ootOxPmlyemZIqpYiaNqKwTEc2r5wkLHkbjGNdIME+RQRhjK/o9QEM8igBj+5lT8CIvMQmgLVyEmLBfS84gmvi+bvzCPbdafjRDyFSB5g4Un5odMQaKQReXNTIpdys9KXGKBpiRHJtznCCsP32/F8Ta8HASc0rMuUQ4RN3NibORVLte0FO5yhMTMlh5G0/Jx2wO9lpVGEb5W+nssU8ev8bximD++fv4j+N8iHtahVzIOxrox85ikqTPFDjHeQ/20566AcahN9fB5PRRKU5hwth4Ynmyw0SZCnuAQysA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1743057129; bh=maesrkl2eA/gCMUPc6KM0qohnKI2D7ddkOBJ0fvVnss=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=IeRWLddL6wLn623vEE+37NYZi1/Ksa6DmujfE90G5FbXY/APWjfe/jmC4eY1lSCaxUW6HUZ4Gcvxrq5EhLC+JnuBPeAH+fTDS+WQZlvuGuMpNMWqOEhE/ckqm1NP1qeIhJ99ekWCLLH521vAspCjD7R1866UoFh8ieMjQYM0Xs6TeCGK1tiwboVB0Xjs8hGLM9zNKYUbYXgqZDYmU/gi9wzn9ZnLyNk0obXzvv5OlMzK4rusPfrHuaWHKRhEegBYfhmxV1hADb2Pcu0uNrur334ISz2/LDk3CC1c3sCGCvOefxe7+qCH350oaaMzcfhlB6MAVavwaGNjtIMA/wHAsA== X-YMail-OSG: 2PsPt0IVM1nEGX_lSUMoJq9dI_lJRZ30GhlNM4pVJlSD6YGce26QfRsx58l0.zh 17lek6zSQdVPD7L0dzoeHPFlcvKcZVzG88dJA2127HsWdLcy_g_K1BNes.I91EUgYgJ41fcH0ULk 1BmwxrBor.rZpWWQ1KM8KGeI28RyzNnJ2Fk46a08siRVM93KxWOrGSIETHrJUtxZctre0nWhZk4S 7g7I6qFYQPsZ.ie6KSQX9X0dv0qwuKSiSBe11uMCPLljxbFjlpMeQ5l254hcukoFwU3Et44zOFFP d8NzNvQ2XKT1rmnw78S0ib49VaezETE6SnYaaGbE7ZRShPQyQx0RnbQ.a6YgXmcgZNHoXOMUr8yE ZV80N.yvA0l2z4dUhcDGGr3qwIzZMSjQnme_jlmC78m8FUpzD0k7ZFRgOGfgHMpdE2rfZWp4oNgE V43ym.8WTQ5RrKT7LymzzjM2G3NqqC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LTdJNv_2dzWnpDu2tFLQ4AFf325ZdQU7bnEa oHbAC.Ge91dlk.OvgFk_wy5j1.JHSl54cKoyZA6fMQQ1P5mOJI.uWShLZjSUb1qZkpElVoQyuE42 HiiNA0t3tGiRnw7eJER20CfwXf20RReziyONsqZUKdAAyvY7hxSy9AvU7qYQqxd2KFIFyax2YL0e tl0ek9dl_V6q1gYH.z_hwHy0Zpw6gDy_Ot9DibfFNZcMJCHh3HgeqI24tns1hlVxfa7tflF6FSS1 CygVUhff2CHmFbsPKjVw4fOdsAZYk7EKto9WqWmRGUMf8obDCUfGWA_W_aRAtoKy4PB579CyHGcp 0Ex9PPj3UNVHozUPVEt2vVBszLCZvQVeiKxKZqvIv_qL3B44qasr4u_tqO5.xynEpHeNZW7onkPR QPK4.ik9alrkxCldj9grIBJQ0SCcnovRbs_E2xnrWBUz28OkxqxzznMMUpYrJjPwlxMLNXutJWAO 3KxPMsmJEahHU_ElRuIwL8czGYIKOSPpA7XhZ.MiYczEp9H.iBNSenc6Vu7_otaxRUHPCZhUWK19 gClIfONgBAtEZWmhEurQYk.lM9H4u3ULOtFu9_c8FYg4Z9ZjUuagu51SEGHEIl_WvzOqgJS1_dNp cDbi8BQSFgPZQlFS0MCItEtSg9Wqwn2Y7QQjZWb2zKGuLwXqk5c.iZIWGi7qmA1xgW_O5g51p3_h KpyEt2ljXB5V8JHBqlkSagqKiNhKeGmPVmivqSrV9gTpWJ0W2VqNBL1ij X-Sonic-MF: X-Sonic-ID: 5e90b4c3-11e5-4de3-a765-fb836a36eefe Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.ne1.yahoo.com with HTTP; Thu, 27 Mar 2025 06:32:09 +0000 Date: Thu, 27 Mar 2025 06:32:06 +0000 (UTC) From: George R Goffe To: "bug-grep@gnu.org" Message-ID: <1315878460.1073991.1743057126561@mail.yahoo.com> Subject: Is this a bug? MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable References: <1315878460.1073991.1743057126561.ref@mail.yahoo.com> X-Mailer: WebService/1.1.23533 YMailNorrin Content-Length: 1405 Received-SPF: pass client-ip=66.163.187.148; envelope-from=grgoffe@yahoo.com; helo=sonic316-22.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.7 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: 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, Content analysis details: (1.7 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org] 0.7 SPF_NEUTRAL SPF: sender does not match SPF record (neutral) 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (grgoffe[at]yahoo.com) 1.0 FORGED_YAHOO_RCVD 'From' yahoo.com does not match 'Received' headers -0.0 SPF_HELO_PASS SPF: HELO matches SPF record X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: George R Goffe Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.7 (/) 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-ex= perimental 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 l= ong [-Werror=3Dunterminated-string-initialization] =C2=A0 222 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 wprefix[10] = =3D "(?) id 1txpbk-0006Yf-Gk for submit@debbugs.gnu.org; Thu, 27 Mar 2025 11:57:28 -0400 Received: from resqmta-a2p-658785.sys.comcast.net ([2001:558:fd01:2bb4::a]:51210) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1txpbh-0006XJ-Kd for 77301@debbugs.gnu.org; Thu, 27 Mar 2025 11:57:26 -0400 Received: from resomta-a2p-647141.sys.comcast.net ([96.103.145.233]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 256/256 bits) (Client did not present a certificate) by resqmta-a2p-658785.sys.comcast.net with ESMTPS id xmu1tnbNCQi29xpbatGCKt; Thu, 27 Mar 2025 15:57:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=20190202a; t=1743091039; bh=PzF7LNmfDKWVBQYNQPNMcQOvv5svXY9wUlsrZQOoB8I=; h=Received:Received:Received:Received:From:To:Subject:Date: Message-ID:Xfinity-Spam-Result; b=CBqwd4tEsgklSzJ72XJwra9tgR0DC6e++5+8Q0Cq6HigvDS+twe148oK5R4LSF+9g sFxw3olHO1UVuD3ZWf/L0y5hVOs/T3KXcV0DkeTzlrxfHXfDRcT1W4LtdeH0py7SgY /pSKCUeI//WjlOJL8t7fSokwngR8j2S1fp7SlKhsqX8fGxInVcqyVtoWk8R5XxDrGo JZqBQHl+OkeSRzArx60Fp5/7Iak9RHQGTMWg7u0DA0fF3iH/9uB7BpYQY2OVCQb4LC H3MTNdAXGWVys0Q3WOi2w64aKItkrvxJ3hpb+VQfZ8d7iOwSTDo3yXgG9eh/U+u8wi xflEkEHvH6mwQ== Received: from hobgoblin.ariadne.com ([IPv6:2601:192:4a00:430::ea6f]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 256/256 bits) (Client did not present a certificate) by resomta-a2p-647141.sys.comcast.net with ESMTPSA id xpbYt8W5Cssl7xpbZtd1Q1; Thu, 27 Mar 2025 15:57:18 +0000 Received: from hobgoblin.ariadne.com (localhost [127.0.0.1]) by hobgoblin.ariadne.com (8.16.1/8.16.1) with ESMTPS id 52RFvGZV1127866 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Thu, 27 Mar 2025 11:57:16 -0400 Received: (from worley@localhost) by hobgoblin.ariadne.com (8.16.1/8.16.1/Submit) id 52RFvG7r1127863; Thu, 27 Mar 2025 11:57:16 -0400 X-Authentication-Warning: hobgoblin.ariadne.com: worley set sender to Dale.Worley@comcast.net using -f From: "Dale R. Worley" To: George R Goffe Subject: Re: bug#77301: Is this a bug? In-Reply-To: <1315878460.1073991.1743057126561@mail.yahoo.com> (bug-grep@gnu.org) Date: Thu, 27 Mar 2025 11:57:16 -0400 Message-ID: <877c4awjoj.fsf@hobgoblin.ariadne.com> X-CMAE-Envelope: MS4xfD0V7LF+SCIXYYZ1y5UugWgxW6CFObs/Xcg7LOPuNwMqF85srZz4nw6xYR82wWfIv4Tj/e8GN5oY8ci5BVe8AU11JgLG6TlkZTPRkasVCOV0WmqLoH67 OL/AM072MoKOi72l6SD8cqcTJ7XxhjJeo7+wxwqNU2mt3g7ZSfr5PlhkOdz2cvpaTL79cNBmhMmjWi3YymYJkA/8W6D8mqhqm7XFSdtPyoNEc3K59r+lf2fF QDXL5hs4gFQpYKIeFXH3wlY/EHffeHNyqqrwnUXIS4U= X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 77301 Cc: 77301@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) George R Goffe via Bug reports for GNU grep 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] = "(? | ^~~~~~~~~~~~~ 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 From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 27 12:17:51 2025 Received: (at 77301) by debbugs.gnu.org; 27 Mar 2025 16:17:51 +0000 Received: from localhost ([127.0.0.1]:51033 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1txpvS-00018z-Tu for submit@debbugs.gnu.org; Thu, 27 Mar 2025 12:17:51 -0400 Received: from frenzy.freefriends.org ([198.99.81.75]:53242 helo=freefriends.org) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1txpvP-000187-TG for 77301@debbugs.gnu.org; Thu, 27 Mar 2025 12:17:48 -0400 X-Envelope-From: arnold@skeeve.com Received: from freefriends.org (localhost [127.0.0.1]) by freefriends.org (8.16.1/8.16.1) with ESMTPS id 52RGHagJ622157 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Thu, 27 Mar 2025 10:17:36 -0600 Received: (from arnold@localhost) by freefriends.org (8.16.1/8.14.7/Submit) id 52RGHasF622156; Thu, 27 Mar 2025 10:17:36 -0600 From: arnold@skeeve.com Message-Id: <202503271617.52RGHasF622156@freefriends.org> X-Authentication-Warning: frenzy.freefriends.org: arnold set sender to arnold@skeeve.com using -f Date: Thu, 27 Mar 2025 10:17:36 -0600 To: grgoffe@yahoo.com, Dale.Worley@comcast.net Subject: Re: bug#77301: Is this a bug? References: <1315878460.1073991.1743057126561@mail.yahoo.com> <877c4awjoj.fsf@hobgoblin.ariadne.com> In-Reply-To: <877c4awjoj.fsf@hobgoblin.ariadne.com> User-Agent: Heirloom mailx 12.5 7/5/10 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 77301 Cc: 77301@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) "Dale R. Worley" via Bug reports for GNU grep wrote: > George R Goffe via Bug reports for GNU grep 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] = "(? > | ^~~~~~~~~~~~~ > > 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 The bug is that the constants given for the sizes are each to small by one. Count the characters in each string, add 1 for the final '\0', and you'll see. Arnold From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 27 13:55:23 2025 Received: (at 77301-done) by debbugs.gnu.org; 27 Mar 2025 17:55:23 +0000 Received: from localhost ([127.0.0.1]:51241 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1txrRr-0006ER-Bz for submit@debbugs.gnu.org; Thu, 27 Mar 2025 13:55:23 -0400 Received: from mail.cs.ucla.edu ([131.179.128.66]:35804) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1txrRn-0006DS-PJ for 77301-done@debbugs.gnu.org; Thu, 27 Mar 2025 13:55:20 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 71B453C23F3AD; Thu, 27 Mar 2025 10:55:12 -0700 (PDT) Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10032) with ESMTP id kXXUpgAlKeJw; Thu, 27 Mar 2025 10:55:12 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 38BD13C330C3A; Thu, 27 Mar 2025 10:55:12 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu 38BD13C330C3A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1743098112; bh=BghZly72nDsPYl/vzFY1AhneldpvLXpP74I8pVFjJRY=; h=Message-ID:Date:MIME-Version:To:From; b=jnQpmuDKVAzBsRrrjdsaWcsn8KvhW4Ew45oZTAqIoWImW7fKoGY5WnlngOKbacKCP IC8QWvsbnlTmKHGXkoK1liHUm0OQnUF6hpmxyKF5wjdzVelSAo1Tg/olUr258jBeNZ 3Pu+oz6o+axerTk1oDRXo39xmG9m+y8jjQMCJ6pEqLlOchD7+xgvvVttezGWJ31RW1 gyZyKgsvCFiiH6Ecn2c/YmDiToSpQpkZkXsK9+KCvlCoLmvntW/R4hKVzDPsYO+X05 9fGfHIe+vP8YMvngW91CVdYpQyEbMRfvR8NGLtG0lfZxlD+MLwkgg0vlPAAfRYBWe5 E0qB5kYfAc64g== X-Virus-Scanned: amavis at mail.cs.ucla.edu Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10026) with ESMTP id bR2_mkYzMs2O; Thu, 27 Mar 2025 10:55:12 -0700 (PDT) Received: from [10.10.33.175] (unknown [96.69.135.29]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id EAD653C23F3AD; Thu, 27 Mar 2025 10:55:11 -0700 (PDT) Message-ID: <750dcc11-c55a-4654-bd87-d92f929d94dc@cs.ucla.edu> Date: Thu, 27 Mar 2025 11:55:10 -0600 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#77301: Is this a bug? To: George R Goffe References: <1315878460.1073991.1743057126561.ref@mail.yahoo.com> <1315878460.1073991.1743057126561@mail.yahoo.com> Content-Language: en-US From: Paul Eggert In-Reply-To: <1315878460.1073991.1743057126561@mail.yahoo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 77301-done Cc: 77301-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) It's not a bug in grep. We pacified GCC's false alarm in grep commit 08c4ce064b7f42acc023a9b28d1076a81feb6143. From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 28 12:24:55 2025 Received: (at 77301) by debbugs.gnu.org; 28 Mar 2025 16:24:55 +0000 Received: from localhost ([127.0.0.1]:55308 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tyCVr-0002xp-GE for submit@debbugs.gnu.org; Fri, 28 Mar 2025 12:24:55 -0400 Received: from resqmta-h2p-567037.sys.comcast.net ([2001:558:fd02:2446::2]:40420) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tyCVo-0002xZ-HI for 77301@debbugs.gnu.org; Fri, 28 Mar 2025 12:24:53 -0400 Received: from resomta-h2p-540626.sys.comcast.net ([96.102.179.210]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 256/256 bits) (Client did not present a certificate) by resqmta-h2p-567037.sys.comcast.net with ESMTPS id y9TVtp19imoe6yCVetsWjJ; Fri, 28 Mar 2025 16:24:42 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=20190202a; t=1743179084; bh=+yB+gJeSrrViBHmejRHQIajz/snoKIR+nW4JRrQOFLM=; h=Received:Received:Received:Received:From:To:Subject:Date: Message-ID:Xfinity-Spam-Result; b=kS1ax2k6t5i95nC2UCT6Q7s0ZTpGxaE6XVbDlXh/NzJmJWzvGKlU0H6q9WMkZ2GxS DNeTjUijoLha5QMfmfjdCC/AEfWnvR1pplZzeUnHEejI8ez765gBPuoCJwfO4P3KPP aZCOMdzewcNTjMQh7eqZVqqzPp0zlwLMYCgB3ISU+B34dGARCxLGgrx+S8mXkcEV9O qHB7N70lijZpCdAVxZ3+9RqBn+QnZqDnFHtRY0FIeZvRkpc/K6qOfu8zyEOZvJKw5A ZLkwPTSyd5FbVaraDKdDdZUnzC/tkzTOPj6xeYfHaxzuQMTkIE1pvi9OQ62Eve1uLu /76qlbMy9UKNQ== Received: from hobgoblin.ariadne.com ([IPv6:2601:192:4a00:430::ea6f]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 256/256 bits) (Client did not present a certificate) by resomta-h2p-540626.sys.comcast.net with ESMTPSA id yCVat47fQwfXXyCVctQSvc; Fri, 28 Mar 2025 16:24:42 +0000 Received: from hobgoblin.ariadne.com (localhost [127.0.0.1]) by hobgoblin.ariadne.com (8.16.1/8.16.1) with ESMTPS id 52SGOcT71272004 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Fri, 28 Mar 2025 12:24:38 -0400 Received: (from worley@localhost) by hobgoblin.ariadne.com (8.16.1/8.16.1/Submit) id 52SGOaBT1272001; Fri, 28 Mar 2025 12:24:36 -0400 X-Authentication-Warning: hobgoblin.ariadne.com: worley set sender to Dale.Worley@comcast.net using -f From: "Dale R. Worley" To: arnold@skeeve.com Subject: Re: bug#77301: Is this a bug? In-Reply-To: <202503271617.52RGHasF622156@freefriends.org> (arnold@skeeve.com) Date: Fri, 28 Mar 2025 12:24:36 -0400 Message-ID: <87y0wpunqz.fsf@hobgoblin.ariadne.com> X-CMAE-Envelope: MS4xfEtBbjPRWnZTBC/2Jbn2zAKY5CNyGfAug46QVssGbz7aROLp5Lvo/Zde7VV94yLxGjitz/h/ScyjwbGQPjjPKsdpqsmOtlE/RCYOfZ2otwNA1ozuzKdB 1AB30ViF0OrCKDzeRb9ZWEIQJSmqkdIdphojwVV2q1t8XU0CPWRD2nhINH+tPYdljM05kSr6cg9Fs4qF5INIcoLYUteH2oQREyfpl7S1tCZ+dSnHmfe9fve0 U3tOj8ZqQvAzh8zoDC+gE1nJrObk/68hmxmFBuZVBg7NY5ple1PGGl+X5DMJNQbZ X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 77301 Cc: grgoffe@yahoo.com, 77301@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) arnold@skeeve.com writes: > "Dale R. Worley" via Bug reports for GNU grep wrote: ... >> 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". > > The bug is that the constants given for the sizes are each to small by one. > Count the characters in each string, add 1 for the final '\0', and > you'll see. Yes, but ... Back when I was programming in C (and when I was involved in writing a C compiler), there was a specific clause in the C standard for that case, saying that it was OK, the characters went into the char[] variable, and the final NUL was to be ignored. When I said "special case" above, I meant it. I expect I've thrown away the copy I have of the draft of the original ANSI C, so I can't check that, and ANSI is uptight so there aren't copies of the current standard on online. But trying to search for statements about the *idea*, I couldn't find any online reference saying that some Cnn standard had removed that special case. Dale From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 28 13:14:47 2025 Received: (at 77301) by debbugs.gnu.org; 28 Mar 2025 17:14:47 +0000 Received: from localhost ([127.0.0.1]:55395 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tyDI6-0005ER-Nn for submit@debbugs.gnu.org; Fri, 28 Mar 2025 13:14:47 -0400 Received: from sonic316-54.consmr.mail.gq1.yahoo.com ([98.137.69.30]:33075) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tyDI2-0005Dz-0y for 77301@debbugs.gnu.org; Fri, 28 Mar 2025 13:14:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1743182074; bh=XApgGfNxA0kKRy2vsVYQzxbVNRgsgxHdnNwNxgmE/QU=; h=Date:From:To:Cc:In-Reply-To:References:Subject:From:Subject:Reply-To; b=OlfAJVgYwQSb4XYIldIFN1JxWVT3/S7NrUXiQNRvbQ5vHRISTVYYwuNfVFZu3PIqzOzseWZMCUhNXD1Bnf/PFNRlf6kQ5E3vkGt2jTB3GiuO3SjRbBM4tPvSVopM/b6EfbX8EscNuwnRewE5hv0breJAydkAtXozkMn94GL9kNXifu/EuAr0Wum/gHRCVQIL+0513GOSxA7LETs7BbFQuGUAUeFhfv5hveaKru/C/LTYQpX30QpRo5UIMo2sMFtKyVpAjIDvIFsV9/nEpko6zC4UPulUxp46uQsqUNV8yf6JhbkZ9+cKFV98JQAz7v1VbwyGrpDRqPSkvUv36lNd3A== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1743182074; bh=h6DBQZ5QZGLHhIDcHdtuhTRiEqmDOstH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IgjiOLRE4UpGapDpFrHjeAgGIgppMw9xo2DXOz3L7eR_KOwiDPnUcU7sowNpS1AwyZxypaE8hWe HirG_KN2nz7j2ozhvtfWJts0RoyxrEJAIdk0jUAusJnzihSxcsYaDR_.DNoC9mX2t.cakcWsMQ3p opEewjc2O1DLlVx8KxY5Z.Cc0ot53BQbuhz_kKghgZNLQw8Ntuph9jue2paL7AabP40HlMoV28Ir MAFQxIw0oybAfcdNELJyfhNS1m6RqWuHOsYitRlsj0k6zAuC0H_bZrab5VyGuHH1IZG5HXejwRoA ykFv3ogCPhvNLjPnBnkNCAiIBm_oywbxJAcm55vn1ooY_61D.h10WsrQTHNsCmzn3yulbJlC4OCv LSNIkD6pK.zZaVCk2CMkHgqyDSxtClvaoAQe3HsAu090LaCSnRn_50bEyks.ZmqF9cumd9uU7WMx b2AZ1nDCb0rGDE7pBSfF5Nb3o0R.Uit6A2xv4WDajgcMVoSLu1XauQHLtujn7DLNFYCn.5AgZjgO rYZgGOmdcNtePc1qcNeuTqPNZGLtwliLUr6FRV.3A2l0S.HRINSEkDY1cAm6TBQ.lNbBx2KZdxcg - X-Sonic-MF: X-Sonic-ID: a29ddb50-74b5-48ca-b6f2-89069b1bd7fa Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.gq1.yahoo.com with HTTP; Fri, 28 Mar 2025 17:14:34 +0000 Date: Fri, 28 Mar 2025 17:14:29 +0000 (UTC) From: "David G. Pickett" To: "arnold@skeeve.com" , "Dale R. Worley" Message-ID: <1318845602.2644104.1743182069890@mail.yahoo.com> In-Reply-To: <87y0wpunqz.fsf@hobgoblin.ariadne.com> References: <1315878460.1073991.1743057126561@mail.yahoo.com> <202503271617.52RGHasF622156@freefriends.org> <87y0wpunqz.fsf@hobgoblin.ariadne.com> Subject: Re: bug#77301: Is this a bug? MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2644103_1184925995.1743182069888" X-Mailer: WebService/1.1.23533 AolMailNorrin Content-Length: 4924 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 77301 Cc: "grgoffe@yahoo.com" , "77301@debbugs.gnu.org" <77301@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) ------=_Part_2644103_1184925995.1743182069888 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable You can always init the char one at a time.=C2=A0 :D On Friday, March 28, 2025 at 12:25:34 PM EDT, Dale R. Worley" via Bug r= eports for GNU grep wrote: =20 arnold@skeeve.com writes: > "Dale R. Worley" via Bug reports for GNU grep wrote: ... >> That is strange:=C2=A0 I can't find any statement that recent C standard= s >> have removed the special case "initialize a char array that doesn't have >> room for the final NULL from a string literal". > > The bug is that the constants given for the sizes are each to small by on= e. > Count the characters in each string, add 1 for the final '\0', and > you'll see. Yes, but ... Back when I was programming in C (and when I was involved in writing a C compiler), there was a specific clause in the C standard for that case, saying that it was OK, the characters went into the char[] variable, and the final NUL was to be ignored.=C2=A0 When I said "special case" above, I meant it. I expect I've thrown away the copy I have of the draft of the original ANSI C, so I can't check that, and ANSI is uptight so there aren't copies of the current standard on online.=C2=A0 But trying to search for statements about the *idea*, I couldn't find any online reference saying that some Cnn standard had removed that special case. Dale =20 ------=_Part_2644103_1184925995.1743182069888 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
You can always init the char= one at a time.  :D

=20
=20
On Friday, March 28, 2025 at 12:25:34 PM EDT, Dale = R. Worley" via Bug reports for GNU grep <bug-grep@gnu.org> wrote:


arnold@skeeve.com wri= tes:
> "Dale R. Worley" via Bug reports for GNU grep &= lt;bug-grep@gnu.org> wrote:
...
>> 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".
>
> The bug is that the constants given for the sizes are each t= o small by one.
> Count the characters in each string,= add 1 for the final '\0', and
> you'll see.

Yes, but ... Back when I was programming in C = (and when I was involved
in writing a C compiler), there = was a specific clause in the C standard
for that case, sa= ying that it was OK, the characters went into the
char[] = variable, and the final NUL was to be ignored.  When I said
"special case" above, I meant it.

I expect I've thrown away the copy I have of the draft of the origina= l
ANSI C, so I can't check that, and ANSI is uptight so t= here aren't
copies of the current standard on online.&nbs= p; But trying to search for
statements about the *idea*, = I couldn't find any online reference saying
that some Cnn= standard had removed that special case.


Dale<= br clear=3D"none">


=
------=_Part_2644103_1184925995.1743182069888-- From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 28 17:53:28 2025 Received: (at 77301) by debbugs.gnu.org; 28 Mar 2025 21:53:28 +0000 Received: from localhost ([127.0.0.1]:55799 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tyHdn-0001e2-S0 for submit@debbugs.gnu.org; Fri, 28 Mar 2025 17:53:28 -0400 Received: from mail.cs.ucla.edu ([131.179.128.66]:50870) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tyHdj-0001de-V7 for 77301@debbugs.gnu.org; Fri, 28 Mar 2025 17:53:24 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 8809C3C005175; Fri, 28 Mar 2025 14:53:17 -0700 (PDT) Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10032) with ESMTP id ti4Zw6yAO08M; Fri, 28 Mar 2025 14:53:17 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 4A9E63C0149FF; Fri, 28 Mar 2025 14:53:17 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu 4A9E63C0149FF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1743198797; bh=sjI6iHesb7BulVzGuou+itKd9MxOwwJwqiCXvImKb6U=; h=Message-ID:Date:MIME-Version:To:From; b=lO1RG5EmOfdr0LhbzZw3sEsniEMkYvCRPwyUtueDXX+a6tTHN9JuYXvYjAFm5GzJm 7gArbMhb38FNNDeOxOTaUl51NPt/fXSbrcaqVSBlQsxN3Z6QsNv0cBdADra8v1Cju7 yoYt+Pv3+W7X1bbLf9n+o5yPP2mrCc0D4+giqtggLEXgUiDOG0NSip/QXtmy1MX0fL OBsQI3wOvTJR5Hj6k+vn208hMZPR5hlJOOm0Btg3syRF68/H4pghNACuUjF2ReH1oR E0GGVfEzTy2fzNNqMOZi9ETkbOyHgE+5YQzG+vlBN9EK6IQHazS/pZ/1RVHXsnzk/4 atkaNGswdHcMQ== X-Virus-Scanned: amavis at mail.cs.ucla.edu Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10026) with ESMTP id K8jVZE_W9G8z; Fri, 28 Mar 2025 14:53:17 -0700 (PDT) Received: from [10.0.0.57] (unknown [73.153.214.158]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id D4E253C005175; Fri, 28 Mar 2025 14:53:16 -0700 (PDT) Message-ID: <37377430-60c8-4671-8f45-e08a1fa9acf4@cs.ucla.edu> Date: Fri, 28 Mar 2025 15:53:16 -0600 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#77301: Is this a bug? To: "David G. Pickett" , "arnold@skeeve.com" , "Dale R. Worley" References: <1315878460.1073991.1743057126561@mail.yahoo.com> <202503271617.52RGHasF622156@freefriends.org> <87y0wpunqz.fsf@hobgoblin.ariadne.com> <1318845602.2644104.1743182069890@mail.yahoo.com> Content-Language: en-US From: Paul Eggert In-Reply-To: <1318845602.2644104.1743182069890@mail.yahoo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 77301 Cc: "grgoffe@yahoo.com" , "77301@debbugs.gnu.org" <77301@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On 3/28/25 11:14, David G. Pickett via Bug reports for GNU grep wrote: > there was a specific clause in the C standard > for that case, saying that it was OK That clause is still there, and so the code is valid C code. However, GCC warns about it anyway. We've changed grep (in savannah master) so that GCC no longer warns. From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 29 13:06:56 2025 Received: (at 77301) by debbugs.gnu.org; 29 Mar 2025 17:06:56 +0000 Received: from localhost ([127.0.0.1]:32880 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tyZe4-0002Mo-Ag for submit@debbugs.gnu.org; Sat, 29 Mar 2025 13:06:56 -0400 Received: from sonic303-24.consmr.mail.gq1.yahoo.com ([98.137.64.205]:46578) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tyZdz-0002MR-C9 for 77301@debbugs.gnu.org; Sat, 29 Mar 2025 13:06:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1743268003; bh=AOYckxvvecmTrh1DH0qbZoKjI5v3klMFsJU+PmFVjNs=; h=Date:From:To:Cc:In-Reply-To:References:Subject:From:Subject:Reply-To; b=Lv5ctJhKsG2J9rYUMNWA4n9ThHPcK17uJkxsNwxvznLoBDnla8IOf5QO/qqWkRmGbkWF+HPJE+7IT0ZFXas0KJCQHB9Fm1/Xhu62ym1L7O3xwBaJevada5YjWvqeZKcI6qDNyL7sCTtk9+cx6raXaVoNXjVRaQ8qmtsLiqLmjjjjJO8Z1JqavyEID9nAdAsvekWLWzTUHtx9KeHfMQwnaWIMNFSKlNDiwcYonEzyHMzrf67e3B7lycz9GehE4QWiVfzhwgrsTtXaVtupJ+TKvRGjUVCRds40xE5PPe+XmXPKzJxBItM05dQd3i9lYt07mnpLLJ+DrF29dz71DCmbRA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1743268003; bh=3gnUGSJB6r851qqUOIeh4y0QLWQ1izWhibaw2YUzg5o=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=ICcj5ShJSDm3gQnD/8XxJQG3FLoPKZcPzvYUW/6ejZ9KYN0uUX96PHhbQsSq//RUIzWB5Yhetu+iFx6FehOenNFp86yPeBVPsXOC6TiymBqoA6YlNyJAQZtEWYEjlHJ4Du4gInWH+HCU1eOV1G6rJmzODjjsp8YFlFo88Gke/j85KIJd7HI3kwMAJpzEQC43SgoOS6aAhG7+Kc0m6H9vjGigmcgJXsHJhM77iyPPraW71YF+uTyXDHlC/qgdNWKxC1vQeFRqMkwweiqVRVvy+h1sJEwEO/88xpe8fABwiVUOQXANM6owwTJc+Ft9r9zcseh05JvTc51U5OsCglHucg== X-YMail-OSG: tWNIZj8VM1ksy90qeDLCJBXf_kJ8dNIVbx7NyhvokOnWVhOSwpv0aQ7jLWorK2r dPjDuDeqV0kufMSEQHiaE0uEHVg_pnpavn9yFJMXBvv0v1HkFrEW1r_rCgzvUS2ZKhGLqI3taQzU Dd6sOnrT5X9ADEYdEh3Zh7vxMb0V7styn0kAXXHUKK6hzmt_GfgY8UgMe4qY0ZpLb.B2ijblR2oh UDAw2TkgKqZcJcgavi1Bztd1xhNSWhzMCH5N35Y604IL4S0tcFXEwcn5oMm.DICez2VSF36RpLkS UB.Qa5wdG9cl7eY6J6wXQrX2V9dvE09dPl6UIRLY5mlUgJUAWaBzIdVqQXuR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0E5ixja2aI1CweBHClt Om3hKyZpzAfEb_25mGF4.1AIMiawHb.uJTomnn4clv7i2ItJMJ8hZ3qkC10SnhEl6SW6bBa03.Tc _60wsMeftSKhFO_Kdw1oCDGD0GixNiAJCZ7tkQnFPWWRSaUo1PLFYEhcGGPskW1wntFSSM0VDKpc P.WTaTaBFBsdubiLIEEBL.1QahPKGiXGUBhxxewSw3XhE.jsURutzpktqsTT1Eve2AdHD7cGjsVH gMyGTAEBIgikAi1vvGVQfOITObazHlYpILeGCbl5ohshi742h0Yi1pFu0dL7wPJtlfQ9ZX9QRcYL 4rnasctTiDxytTOc2MUmPR0TOMSCmd25xUAhad6RzkqQVSWtVkM4AoDNYwxXW0o2uzzlr9Id77Xm 2b1thaBD9RdpT7kq_YUEGQ59FXRJn6reSklcs0NvfhnTn0wQWHd1jlTTh.tlCQgCg5FpxtYsQmyl VnCgTlPWhflgAstF_GtVLUH9on3nfbO19YY4h3VxDmVuq6jjbtbOsSRY9lJRiWtzVihqjeh_iWs_ D2xQgX.nzME21yz5Fu3JPB8vbcU8r23yJ3GDac9KKWHrEmoTZVywxUlvBgupge6zmeMx4N23L18i GigQXy1b5NEc_jR2rZhzGkoikzVht8CUqhjOjsPaGaOQbunvnnVuuORVCRvWhuOavDbOGODYNKtn BLisoxWfR5XfD9dHjo5dm.nsxs4NMpu2JbhgZFG6Qqu9N.RWENjGZnFF4YV8rM6npqebbAr237Qf 2gUuhJm_nKU8Tj4aHDmdeym2tHYREN0LvGpYlhHoLkzeJ79EF6V8oZNnjNMzeTFQ1eM9.dKAHHj7 ZhZxqpsd9nxHC7Ge2y66_EgiyOraFRCBh2x7IEqJ2QQ-- X-Sonic-MF: X-Sonic-ID: a386bc31-195c-4479-9bfb-609ae9ea3d90 Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.gq1.yahoo.com with HTTP; Sat, 29 Mar 2025 17:06:43 +0000 Date: Sat, 29 Mar 2025 17:06:39 +0000 (UTC) From: "David G. Pickett" To: "arnold@skeeve.com" , "Dale R. Worley" , Paul Eggert Message-ID: <1878379939.150852.1743267999577@mail.yahoo.com> In-Reply-To: <37377430-60c8-4671-8f45-e08a1fa9acf4@cs.ucla.edu> References: <1315878460.1073991.1743057126561@mail.yahoo.com> <202503271617.52RGHasF622156@freefriends.org> <87y0wpunqz.fsf@hobgoblin.ariadne.com> <1318845602.2644104.1743182069890@mail.yahoo.com> <37377430-60c8-4671-8f45-e08a1fa9acf4@cs.ucla.edu> Subject: Re: bug#77301: Is this a bug? MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_150851_344815585.1743267999576" X-Mailer: WebService/1.1.23533 AolMailNorrin Content-Length: 2874 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 77301 Cc: "grgoffe@yahoo.com" , "77301@debbugs.gnu.org" <77301@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) ------=_Part_150851_344815585.1743267999576 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Maybe put the compiler errors and warnings in a log and use a script to gr= ep out the not previously identified worthless ones?=C2=A0 Some warnings ca= n be stifled to make cleaner code! On Friday, March 28, 2025 at 05:53:18 PM EDT, Paul Eggert wrote: =20 On 3/28/25 11:14, David G. Pickett via Bug reports for GNU grep wrote: > there was a specific clause in the C standard > for that case, saying that it was OK That clause is still there, and so the code is valid C code. However,=20 GCC warns about it anyway. We've changed grep (in savannah master) so=20 that GCC no longer warns. =20 ------=_Part_150851_344815585.1743267999576 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
Maybe put the compiler errors and warnings in a log and use a script to grep out the not previously identified worthless ones?  Some warnings can be stifled to make cleaner code!

On Friday, March 28, 2025 at 05:53:18 PM EDT, Paul Eggert <eggert@cs.ucla.edu> wrote:


On 3/28/25 11:14, David G. Pickett via Bug reports for GNU grep wrote:

> there was a specific clause in the C standard
> for that case, saying that it was OK


That clause is still there, and so the code is valid C code. However,
GCC warns about it anyway. We've changed grep (in savannah master) so
that GCC no longer warns.

------=_Part_150851_344815585.1743267999576-- From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 29 13:15:26 2025 Received: (at 77301) by debbugs.gnu.org; 29 Mar 2025 17:15:26 +0000 Received: from localhost ([127.0.0.1]:32912 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tyZmI-0002pk-4i for submit@debbugs.gnu.org; Sat, 29 Mar 2025 13:15:26 -0400 Received: from mail.cs.ucla.edu ([131.179.128.66]:42480) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tyZmF-0002pG-0v for 77301@debbugs.gnu.org; Sat, 29 Mar 2025 13:15:23 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id AEACA3C006B72; Sat, 29 Mar 2025 10:15:16 -0700 (PDT) Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10032) with ESMTP id kGYFgNvJ6BIt; Sat, 29 Mar 2025 10:15:16 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 7284A3C3214E6; Sat, 29 Mar 2025 10:15:16 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu 7284A3C3214E6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1743268516; bh=y6I9x7hknHE8xyE7H6txtYHGnzmX/I4RUAWEfrp2NNc=; h=Message-ID:Date:MIME-Version:To:From; b=Z/vAU9vFw+gAuBGDYn4ktsenlIusez9BXMLZLzqtA+mNlhWNSVNqdJbn9cywIL3Cv F6epSMjc347K9oFalJY8SsmnMfUqp2nnky1HnVQHudmLns17zZTu1kkZJIwFAVA9iC UjmWlCPZaoIkqrEx348Tcn0Y/m4N7VThOR0qCPONqub3QRlMA+qXTzs8hLk1zmbRxV 0WAh0BXEGTGMl7Nu1lMz2Lr953ar6pz8JhVo77pCpHupLml+ScNYZbcu1vgYgq/fWJ s4Vcvas+WJMyLAosn4tMkXlkssNKztBCckdiO0MxpVWalgjJRZOdfMkcajwWsMPLA2 iU5s9L+GFRwnQ== X-Virus-Scanned: amavis at mail.cs.ucla.edu Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10026) with ESMTP id y-H5oDKPlv0O; Sat, 29 Mar 2025 10:15:16 -0700 (PDT) Received: from [10.0.0.57] (unknown [73.153.214.158]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id 06C9C3C006B72; Sat, 29 Mar 2025 10:15:15 -0700 (PDT) Message-ID: Date: Sat, 29 Mar 2025 11:15:15 -0600 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#77301: Is this a bug? To: "David G. Pickett" , "arnold@skeeve.com" , "Dale R. Worley" References: <1315878460.1073991.1743057126561@mail.yahoo.com> <202503271617.52RGHasF622156@freefriends.org> <87y0wpunqz.fsf@hobgoblin.ariadne.com> <1318845602.2644104.1743182069890@mail.yahoo.com> <37377430-60c8-4671-8f45-e08a1fa9acf4@cs.ucla.edu> <1878379939.150852.1743267999577@mail.yahoo.com> Content-Language: en-US From: Paul Eggert In-Reply-To: <1878379939.150852.1743267999577@mail.yahoo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 77301 Cc: "grgoffe@yahoo.com" , "77301@debbugs.gnu.org" <77301@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On 3/29/25 11:06, David G. Pickett wrote: > Maybe put the compiler errors and warnings in a log and use a script to grep out the not previously identified worthless ones? We typically do better than that, by telling the compiler to not generate the false alarms. Anyway this is is moot for this particular false alarm as we've redone the code. From unknown Fri Jun 20 18:21:52 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 27 Apr 2025 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator