This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug preprocessor/70518] Conditional compilation of #line directives


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]