Details
-
Type:
Bug
-
Status: Open
-
Priority:
P3: Somewhat important
-
Resolution: Unresolved
-
Affects Version/s: 5.11.1
-
Fix Version/s: None
-
Component/s: Build tools: moc
-
Environment:Windows 10 x64 MSVC2017x64, GCC 7.3
-
Platform/s:
Description
If I try to write signals/slots with trailing-return-type as described here(https://en.cppreference.com/w/cpp/language/function), that feature become available with C++11 standard decltype.
signals:
auto testSignal() -> void;
public slots:
auto testSlot() -> void;
But my compilation faild, as I understand moc cannot parse this signature, and gives error like that:
\AutoReturn\TestClass.hpp -o debug\moc_TestClass.cpp
..\AutoReturn\TestClass.hpp(12): Parse error at ":"
You could reproduce this issue on my small example AutoReturn.zip
Attachments
Gerrit Reviews
For Gerrit Dashboard: QTBUG-71123 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
298168,4 | Moc: parse trailing return type | dev | qt/qtbase | Status: NEW | 0 | 0 |