Subject: bin/13904: cpp ## operator leaves ## in
To: None <gnats-bugs@gnats.netbsd.org>
From: None <adal@cse.unsw.edu.au>
List: netbsd-bugs
Date: 09/09/2001 17:08:06
>Number:         13904
>Category:       bin
>Synopsis:       cpp ## operator leaves ## in
>Confidential:   yes
>Severity:       serious
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Sep 09 00:09:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.5.1
>Organization:
>Environment:
	
System: NetBSD ds20 1.5.1 NetBSD 1.5.1 (DS20) #2: Fri Jul 27 16:37:54 EST 2001 ada@ds20:/usr/src/sys/arch/alpha/compile/DS20 alpha


>Description:
The ## operator concatenates the symbols on either side.

In the cpp in 1.5.1, a##b evaluates to a##b rather than ab.  The C compiler
then handles this case as evaluating to ab.

The assembler does not understand this case, however.  Thus, one cannot use
the # and ## preprocessor operators in assembly language files.

>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: