[Bug preprocessor/12375] New: [3.3/3.4 regression] cpp inserting a spurious newline
debian-gcc at lists dot debian dot org
gcc-bugzilla@gcc.gnu.org
Tue Sep 23 12:59:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12375
Summary: [3.3/3.4 regression] cpp inserting a spurious newline
Product: gcc
Version: 3.3.2
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: preprocessor
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: debian-gcc at lists dot debian dot org
CC: gcc-bugs at gcc dot gnu dot org
[forwarded from http://bugs.debian.org/210482]
cpp is inserting a spurious newline after occurrance of
a macro with arguments withourt parentheses (which it is supposed to
leave alone):
falk@juist:/tmp% cat first.S
#define S(x) foobar
foo ! S
bar
falk@juist:/tmp% cpp-3.2 < first.S
# 1 "<stdin>"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "<stdin>"
foo ! S
bar
falk@juist:/tmp% cpp-3.3 < first.S
# 1 "<stdin>"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "<stdin>"
foo !
S
# 3 "<stdin>"
bar
Bug still there in cpp 3.4 20030911.
More information about the Gcc-bugs
mailing list