-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
5.11.1
-
None
-
CMake 3.12.3 (autogen enabled)
Visual Studio 2015 Update 3 (cmake generated)
Somehow moc parser does not know how to parse these concat macro implementation:
#define CONCAT_(v1, v2) v1 ## v2
#define CONCAT(v1, v2) CONCAT_(v1, v2)
#define CONCAT3(v1, v2, v3) CONCAT(v1, CONCAT(v2, v3))
#define TEST(a, b, c) namespace CONCAT3(a, b, c)
#define MYTOKEN x_y_z
TEST(aaa, bbb, MYTOKEN) // Parse error at "aaabbbx_y_z"
This only reproduces with the `namespace` in a macro. If try to roll out the macro or replace the `namespace` to something like `extern int` then the error does disappear.