Bug 98982 - preprocessor collate, ## follow by ::
preprocessor collate, ## follow by ::
Product: Red Hat Raw Hide
Classification: Retired
Component: gcc (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Depends On:
  Show dependency treegraph
Reported: 2003-07-11 06:59 EDT by Gilles J. Seguin
Modified: 2007-04-18 12:55 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-07-11 07:12:09 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
c++ testcase (175 bytes, text/plain)
2003-07-11 07:07 EDT, Gilles J. Seguin
no flags Details

  None (edit)
Description Gilles J. Seguin 2003-07-11 06:59:53 EDT
Description of problem:
preprocessor fail with error on
#define TEST(name) name##::B()
with error message
test10.cxx:13:17: pasting "C" and "::" does not give a valid preprocessing token

Version-Release number of selected component (if applicable):

How reproducible:
Every time

Steps to Reproduce:
1. g++ -c test10.cpp -o test10.o
Actual results:
we have the following error
test10.cxx:13:17: pasting "C" and "::" does not give a valid preprocessing token

Expected results:
The macro used to succeed in performing the collate
when follow by ::

Additional info:
see test case attachment
Comment 1 Gilles J. Seguin 2003-07-11 07:07:34 EDT
Created attachment 92878 [details]
c++ testcase
Comment 2 Jakub Jelinek 2003-07-11 07:12:09 EDT
Your testcase is buggy, please read ISO C++ 98.
If you remove ## from the testcase, it should work just fine.

Note You need to log in before you can comment on or make changes to this bug.