[Bug preprocessor/58687] "#line __LINE__ ..." changes subsequent line numbers

mtewoodbury at gmail dot com gcc-bugzilla@gcc.gnu.org
Thu Oct 31 18:00:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58687

--- Comment #14 from Max TenEyck Woodbury <mtewoodbury at gmail dot com> ---
Created attachment 31125
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31125&action=edit
Patch to postpone __LINE__ evaluation to the end of a # line directive.

Patch includes changes to 2 source code files, a header and the line4.c test
case.

make bootstrap OK.

make -k check of patched and un-patched code matches except for time stamps.

Formal release of changes copyright to FSF granted.

Max TenEyck Woodbury



More information about the Gcc-bugs mailing list