On Sun, 1 Oct 2017, Rasmus Villemoes wrote:

> 2017-10-01  Rasmus Villemoes  <r...@rasmusvillemoes.dk>
> 
>         PR preprocessor/64965
>         * gcc.c-torture/compile/pr64965.c: New test.
> 
> If the current filename contains a newline character, __FILE__ would
> expand to a string literal containing an actual embedded newline,
> which is of course illegal. Similarly, even in the absence of __FILE__
> in the source file, gcc -E produces broken #line directives, making
> the preprocessed output unsuitable for subsequent processing (though
> compiling directly does work). Fix it by also escaping newline
> characters.

OK.

-- 
Joseph S. Myers
jos...@codesourcery.com

Reply via email to