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