Bug 98982 - preprocessor collate, ## follow by ::
Summary: preprocessor collate, ## follow by ::
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: gcc
Version: 1.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-07-11 10:59 UTC by Gilles J. Seguin
Modified: 2007-04-18 16:55 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2003-07-11 11:12:09 UTC
Embargoed:


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

Description Gilles J. Seguin 2003-07-11 10:59:53 UTC
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):
gcc-3.3-12

How reproducible:
Every time

Steps to Reproduce:
1. g++ -c test10.cpp -o test10.o
2.
3.
    
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 11:07:34 UTC
Created attachment 92878 [details]
c++ testcase

Comment 2 Jakub Jelinek 2003-07-11 11:12:09 UTC
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.