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/12375] New: [3.3/3.4 regression] cpp inserting a spurious newline


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.


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