public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/113340] New: ICE when an explicit object parameter is attempted to be used in a destructor
@ 2024-01-11 20:55 friedkeenan at protonmail dot com
  2024-01-11 21:08 ` [Bug c++/113340] " mpolacek at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: friedkeenan at protonmail dot com @ 2024-01-11 20:55 UTC (permalink / raw)
  To: gcc-bugs

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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-01-16 22:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-11 20:55 [Bug c++/113340] New: ICE when an explicit object parameter is attempted to be used in a destructor friedkeenan at protonmail dot com
2024-01-11 21:08 ` [Bug c++/113340] " mpolacek at gcc dot gnu.org
2024-01-11 21:45 ` mpolacek at gcc dot gnu.org
2024-01-15 15:57 ` [Bug c++/113340] [14 Regression] " mpolacek at gcc dot gnu.org
2024-01-16 22:06 ` cvs-commit at gcc dot gnu.org
2024-01-16 22:11 ` mpolacek at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).