Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
Qt Creator 4.3.1
-
54fefd89b86f9b7c3496317bcfcf3882ff72e67c (qt-creator/qt-creator/4.11)
Description
When the base class contains non-throwing virtual functions e.g.
class Base { virtual void f() noexcept; virtual void g(); }; class Derived : public Base { };
Then using Insert Virtual Functions refactoring action results to
class Derived : public Base { void f(); void g(); }
As each overrider of non-throwing virtual function must be non-throwing, the derived functions must specify noexcept. Thus the current result is ill-formed.
Attachments
Issue Links
- relates to
-
QTCREATORBUG-19157 noexcept specifier not transfered to generated implementation
-
- Closed
-
For Gerrit Dashboard: QTCREATORBUG-19699 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
276527,3 | C++: Transfer noexcept specifier for refactoring actions | 4.11 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |