[BUGFIX] using "#line" directive breaks annotation lines of error messages

mb3h via Gcc <[email protected]> Wed, 10 Jun 2026 08:07:26 +0900
Newsgroups gmane.comp.gcc.devel
Message-ID <ME0P300MB1312E0B8F5FE0E6B9AC218B7D91D2@ME0P300MB1312.AUSP300.PROD.OUTLOOK.COM>
I made a bugfix patch, where using "#line" directive breaks annotation 
lines of error messages.
Does sharing that here help someone?

https://github.com/mb3h/gcc-patch

I know probably this bugfix doesn't have high priority.

Because this gives profit to limited people that use the classic 
utilities using "#line" directive like Flex, Bison or custome tool 
(Cfront might be included) and this is limited issue on error message 
only that has nothing to do with generation of object code.

In addition, I have to say I only made sure this issue happens on 
gcc-13.3.0 and I don't know whether latest version needs this patch or not.
(Although it looks like not changed on source code of 13.4.0 and 15.2.0, 
I don't build these and make sure actual behavior)