line continuation causes make to report incorrect error locations

Britton Kerin <[email protected]>
Newsgroups gmane.comp.gnu.make.bugs
Message-ID <CAC4O8c-0PYVef+HvGpjj_o7R4VOSsSEhMJdvho7nO1Z=TWfiDA@mail.gmail.com>
$ make --version
GNU Make 4.3
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
$ cat Makefile
foo:
        \
        true
        false
$ make
\
        true
false
make: *** [Makefile:3: foo] Error 1

The error is actually on line 4.  More continuation lines push the
reported location of the error farther and farther from the actual
location.

Britton
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.