[Bug preprocessor/94207] error: pasting "::" and "ClassFOO1" does not give a valid preprocessing token

2020-03-17 Thread jr at heisey dot org
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.

[Bug preprocessor/94207] error: pasting "::" and "ClassFOO1" does not give a valid preprocessing token

2020-03-17 Thread jr at heisey dot org
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

[Bug preprocessor/94207] New: error: pasting "::" and "ClassFOO1" does not give a valid preprocessing token

2020-03-17 Thread jr at heisey dot org
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

[Bug c++/55227] designated initializer for char array by string constant

2018-11-14 Thread jr at heisey dot org
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

[Bug preprocessor/60492] Using the L#param in a macro fails

2014-03-14 Thread jr at heisey dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60492 --- Comment #6 from J.R. Heisey --- Really? What rule would make this behavior expected?

[Bug preprocessor/60492] Using the L#param in a macro fails

2014-03-10 Thread jr at heisey dot org
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

[Bug preprocessor/60492] Using the L#param in a macro fails

2014-03-10 Thread jr at heisey dot org
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

[Bug preprocessor/60492] New: Using the L#param in a macro fails

2014-03-10 Thread jr at heisey dot org
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