https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113340
Bug ID: 113340
Summary: ICE when an explicit object parameter is attempted to
be used in a destructor
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: friedkeenan at protonmail dot com
Target Milestone: ---
GCC segfaults on the following code:
struct S {
~S(this S &) = default;
};
Godbolt link: https://godbolt.org/z/G6rq3ra6W
It should be noted that explicit object parameters are not allowed for
destructors in the first place, but nonetheless an ICE should not occur when it
is attempted.