c++/8297: problem with preprocessor

riteshg@pune.tcs.co.in riteshg@pune.tcs.co.in
Sun Oct 20 22:56:00 GMT 2002


>Number:         8297
>Category:       c++
>Synopsis:       problem with preprocessor
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 20 22:56:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Ritesh goel
>Release:        unknown-1.0
>Organization:
>Environment:
linux 7.2
>Description:
when i run 

#define comment /##/
comment

the output is coming as space between twp front slash "/ /".
and it is supposed to come "//" . I am using gcc 3.0 . Till
older versions than gcc3.0 it is comming correctly as "//" .
And also in older version preprocessor is not processing the user defined comments as
#define comment /##/
comment 
when ran with -E option gives output in preprocessed file
as
//

plzz check it
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-bugs mailing list