Re: [preprocessor/91639] #includes at EOF

2019-10-04 Thread Martin Jambor
Hi, On Thu, Sep 05 2019, Nathan Sidwell wrote: > This fixes 91639. > #include processing needs to rewind by one line before doing the > inclusion, so that that happens on the #include line itself. Except > that the lexer doesn't increment the lineno on the last \n of a file -- > because there'

[preprocessor/91639] #includes at EOF

2019-09-05 Thread Nathan Sidwell
This fixes 91639. #include processing needs to rewind by one line before doing the inclusion, so that that happens on the #include line itself. Except that the lexer doesn't increment the lineno on the last \n of a file -- because there's no point. So we had code in the include path to figur