preprocessor/7452: Preprocessor doesn't allow pasting " foo-> ## BAR "

david@there.com david@there.com
Tue Jul 30 20:06:00 GMT 2002


>Number:         7452
>Category:       preprocessor
>Synopsis:       Preprocessor doesn't allow pasting " foo-> ## BAR "
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 30 20:06:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     root
>Release:        3.1.1
>Organization:
There, Inc.
>Environment:
System: Linux dewdev3.there.com 2.4.2-2 #1 Sun Apr 8 20:41:30 EDT 2001 i686 unknown
Architecture: i686

	
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../gcc-3.1.1/configure --prefix=/usr/local/gcc-3.1.1 --program-suffix=-311 --enable-languages=c,c++ --enable-version-specific-runtime-libs --with-dwarf2 --disable-nls
>Description:
	The GNU preprocessor has in the past been able to append method
	names after a "->". It should continue to be able to do so.
>How-To-Repeat:
	When in a macro, try to concatenate some "foo->" with a macro parameter
	like BAR; i.e., "foo->##BAR". Note that the preprocessor will complain,
	tossing a warning and the (incorrect) text "foo-> baz" will be tossed
	out. (Assuming macro parameter BAR was set to baz.) Instead, no warning
	should be issued, and the text "foo->baz" should be output.
>Fix:
	There doesn't seem to be a way to force the preprocessor to accept
	concatenating anything with a left-hand token that ends in "->". =(

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



More information about the Gcc-prs mailing list