another focussed bust of the C/C++ code freeze

"G. Branden Robinson" <[email protected]>
Newsgroups gmane.comp.printing.groff.general
Message-ID <20260205153032.viia63rrppigz44y@illithid>
Here's the patch.  It demotes an error diagnostic to a warning.

diff --git a/src/roff/troff/number.cpp b/src/roff/troff/number.cpp
index 0cc58dbc9..e650c4bdb 100644
--- a/src/roff/troff/number.cpp
+++ b/src/roff/troff/number.cpp
@@ -380,6 +380,11 @@ static bool is_valid_term(units *u, int scaling_unit,
       tok.next();
       is_negative = !is_negative;
     }
+    else if (tok.is_tab()) {
+      warning(WARN_TAB, "ignoring numeric expression starting with %1",
+             tok.description());
+      return false;
+    }
     else
       break;
   int c = tok.ch(); // safely compares to char literals; TODO: grochar

Rationale, background: https://savannah.gnu.org/bugs/?68017

Regards,
Branden
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEh3PWHWjjDgcrENwa0Z6cfXEmbc4FAmmEt5EACgkQ0Z6cfXEm
bc6D3g//W90AUQEl3NItTjdeKlK5IJfAwnU/I3m0HzFDOAJsAOpif7dwNVkvZ5/3
Yh8LwrBnmYztHERXCZoNIi4ul/gzpBz517Bw96X5aa9nIH9oS3zG8tvN/uwRCnKa
Ssye0O9DbUFPvwXCtDRN2YP5eteuJiZ+cfmBcGetSFtAo0EMwBFFVklhaX+tD2D4
+Uzlx29quHLJ+hSSD0190NnUgBsalXEsbS48u2y2EYQGvoJBNNGinRm9eg+Vcc/v
2Pl12y4VI5Uii3JIbJz+Jy2qKttvF0WuJ8e6h4jY0EmsSBH6xdgx+4FFUEMBZBo6
tlvFQ1BgAHCHaGWhv7P0MvrBb5xsSPz4GDdZ5rMOssNQQ0wzijhFADdNGbEoLcoI
8fIfQcsEv5MVuYU6HsE1XLfg4zJK2fpnjXcGqgw1KPRavJERFYoxucCmo+yXt76w
ErIeo9oCZETegIdAMJnGejZPcY5tx1PwtahgjqhbEDFLo5UhZFXH3MbShvzqPqtm
x+uHNwvDREsogG3BTbngqsXqRcc7T1wxdlGaPVzRLZLFy1hiWa36WX091pJD4sdP
xbvhU6OqbX7XhrDJ6WwQ/9kbVFFnBoyEQQT6I6fUgQTZqY6sHazcaJ6PvGyTOaiC
JMe1XEAO/i2i8UiHMNm9QfrURF8nI3IzV6PHuvalSg5eo/XAKzo=
=O6Rl
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.