[Bug preprocessor/47328] New: preprocessor handles backslash at the end of a line incorrectly
gccbugzilla@trash-mail.com
gcc-bugzilla@gcc.gnu.org
Mon Jan 17 14:45:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47328
Summary: preprocessor handles backslash at the end of a line
incorrectly
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: preprocessor
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: gccbugzilla@trash-mail.com
I use the gcc preprocessor to process structures like
@ define vunpack_uchar4(OUT,IN) { \
uint _in = (uint)(IN); \
OUT.x = (_in >> 0) & 0xFF; \
OUT.y = (_in >> 8) & 0xFF; \
OUT.z = (_in >> 16) & 0xFF; \
OUT.w = (_in >> 24) & 0xFF; \
}
(the @ is not a typo but intended. this should not be handled like macro
definition)
The backslash at the end of the line was handled correctly up to gcc 4.5.0. Now
the backslash is removed, but the lines are _not_ concatenated.
More information about the Gcc-bugs
mailing list