https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81745

--- Comment #11 from Sam James <sjames at gcc dot gnu.org> ---
C99 seems to explicitly say, within Clause J.2, in the second bullet point:
>
>1 The behavior is undefined in the following circumstances:
>
>    [...]
>    A nonempty source file does not end in a new-line character which is not 
> >immediately preceded by a backslash character or ends in a partial 
> >preprocessing token or comment (5.1.1.2). 

Came across this because Clang has this warning for -pedantic but GCC doesn't.

Reply via email to