[Bug preprocessor/70518] Conditional compilation of #line directives
manu at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Apr 7 17:11:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70518
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #5 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to joseph@codesourcery.com from comment #4)
> On Sun, 3 Apr 2016, elyk03 at gmail dot com wrote:
>
> > Should #line be processed unconditionally? I know the preprocessor has to keep
>
> It should not be processed in skipped blocks. See C11 6.10.1#6
I think that settles it.
It might be worth it to open a different PR saying that the caret line should
use the real source location and ignore line directives (and linemarkers). That
seems hard to fix, though.
More information about the Gcc-bugs
mailing list