Details
-
Bug
-
Resolution: Done
-
P2: Important
-
6.0, 6.1, 6.2.1, 6.3
-
None
-
Windows 11, QtCreator IDE, CMake 3.22.0, Qt 6.2.1
-
-
4e7f92bf0d (qt/qtbase/dev) 4e7f92bf0d (qt/tqtc-qtbase/dev)
Description
While attempting to migrate a project from Qt5 to Qt6, I encountered an unexpected behavior from the moc tool. If a namespace has the "enum" characters at its begining, for example, a namespace called "enumerations" the moc tool will strip the "enum" characters and generate a compile error.
A minimum example to replicate the behavior can be found at: https://pastebin.com/PuxaV0e6
And the corrupted moc output: https://pastebin.com/Ujs1B8W3
Attachments
For Gerrit Dashboard: QTBUG-97813 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
380225,1 | WIP: enum issue | dev | qt/qtbase | Status: NEW | -2 | 0 |
411022,1 | QMetaType: Fix normalization on MSVC if name contains enum | 6.3 | qt/qtbase | Status: NEW | +2 | 0 |
410675,3 | QMetaType: Fix normalization on MSVC if name contains enum | dev | qt/qtbase | Status: MERGED | +2 | 0 |
411023,2 | QMetaType: Fix normalization on MSVC if name contains enum | tqtc/lts-6.2 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |