Repository navigation
Incorrect noexcept specification for out-of-line defaulted special member function #317
gwllx
started this conversation in
Issue Triage - Compilation
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Issue Summary
EDG applies the in-class defaulted special member function noexcept rules to out-of-line members also, resulting in a possibly incorrect noexcept specification on the generated function.
Reproducing Source Code
https://godbolt.org/z/zrsxrfx4x
Command-line Options
cpfe --c++17
Type of Issue
[Front End] This code SHOULD compile with these options.
Additional Details
is_non_throwing_routinecallscomplete_defaulted_exc_specfor all defaulted routines. The condition should possibly be restricted to in-class defaulted members:rp->is_defaulted && !rp->defined_outside_of_parentorcomplete_defaulted_exc_specshould guard on this in general.Reproducing (Standard) Configuration(s)
linux-gcc-debug
Reproducing (Non-standard) Configuration
No response
I acknowledge that:
LICENSE.txtfile in my.zipor.tar.gzupload. If I included aLICENSE.txtfile, any tests created using the reproducing source code will be governed by the terms of the license I provided instead.All reactions