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/57714] New: Newline rendered incorrectly in output


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57714

            Bug ID: 57714
           Summary: Newline rendered incorrectly in output
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: preprocessor
          Assignee: unassigned at gcc dot gnu.org
          Reporter: potswa at mac dot com

main(){\
return 0;
}

preprocesses to

main(){return
       0;
}

The problem only appears in output from the -E option; observing the newline
within the program as with

#define main(){\
return 0;
}
main()

produces the correct result

}
{return 0;

This is a regression since 4.2.1; the GCC version included with Mac OS X does
not exhibit the problem.


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