Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.5.5, 6.6.2, 6.7.0
-
-
62d02c1d5 (dev), 1a1b1669f (6.7)
Description
The compilation error with the moc happens with the line:
WXG_PROPERTY ( 3DArea, "Surface area", "", eFmtUnspecified)
The compiler (MSCV, clang or GCC) is able to compile/preprocess the file correctly but not the moc.
Here is the error returned :
:/Sources/sample_projects/moc_issues/moc_error/wxg_property_native_propids.(2:1): error: Parse error at "eProp3"
This seems related to the fact that the identifier concatenated inside the macro starts with a number. If the above line is removed, everything works correctly.
To reproduce, please run the attached example project.
Attachments
For Gerrit Dashboard: QTBUG-124288 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
554592,5 | moc: Treat number + characters as Identifier, not Number | dev | qt/qtbase | Status: MERGED | +2 | 0 |
555489,2 | moc: Treat number + characters as Identifier, not Number | 6.7 | qt/qtbase | Status: MERGED | +2 | 0 |