URL: <https://savannah.gnu.org/bugs/?67904>
Summary: [pic] misreports line numbers when macro
interpolation used
Group: GNU roff
Submitter: gbranden
Submitted: Sat 10 Jan 2026 12:45:02 PM UTC
Category: Preprocessor pic
Severity: 3 - Normal
Item Group: Warning/Suspicious behaviour
Status: Postponed
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Unlocked
Planned Release: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Sat 10 Jan 2026 12:45:02 PM UTC By: G. Branden Robinson <gbranden>
$ nl -ba ATTIC/line-numbering-blues.pic
1 .PS
2 define nop1 {
3 }
4
5 define nop0 {
6 nop1(,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,);
7 }
8
9 nop0();
10
11 .PE
$ ./build/pic ATTIC/line-numbering-blues.pic
.do if !dPS .ds PS
.do if !dPE .ds PE
.do if !dPF .ds PF
.do if !dPY .ds PY
.lf 0 "ATTIC/line-numbering-blues.pic
.lf 1
./build/pic:ATTIC/line-numbering-blues.pic:9: warning: pic supports at most 32
macro arguments
.lf 12
No, the problem isn't on line 9, but line 6.
Line 9 is the outermost "scope" at which the problem occurs, but there are
inner ones.
I'm tryin' to do a release here--born postponed.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?67904>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
