https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94207
--- Comment #4 from J.R. Heisey ---
Yes, I figured it out too.
Sorry for the trouble.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94207
--- Comment #2 from J.R. Heisey ---
OK I see that now.
I still cannot make it work with this
#define ENUM_CLASS_TEST_INIT(k) \
mEnumClassTest[k] = EnumClassTest::k;
or adding whitespace between :: and k
D
Severity: normal
Priority: P3
Component: preprocessor
Assignee: unassigned at gcc dot gnu.org
Reporter: jr at heisey dot org
Target Milestone: ---
Created attachment 48051
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48051&action=ed
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55227
J.R. Heisey changed:
What|Removed |Added
CC||jr at heisey dot org
--- Comment #3 from
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60492
--- Comment #6 from J.R. Heisey ---
Really? What rule would make this behavior expected?
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60492
--- Comment #2 from J.R. Heisey ---
Created attachment 32330
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32330&action=edit
Source file
gcc -save-temps Bug_L_in_macro.c
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60492
--- Comment #1 from J.R. Heisey ---
Created attachment 32327
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32327&action=edit
preprocessor results for GCC 4.5.1
Assignee: unassigned at gcc dot gnu.org
Reporter: jr at heisey dot org
#define DEFINE_XML_TOKEN_STRING(n, s) const char n##a[] = #s; const wchar_t
n##w[] = L#s;
//defines for tags
DEFINE_XML_TOKEN_STRING(CONFIG_ELM, config)
The preprocessor inserts a space resulting in
L