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