public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/106361] New: Internal compiler error when creating an out-of-line operator==() = default
@ 2022-07-19 22:15 leo at adberg dot com
  2022-07-19 22:19 ` [Bug c++/106361] " pinskia at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: leo at adberg dot com @ 2022-07-19 22:15 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106361

            Bug ID: 106361
           Summary: Internal compiler error when creating an out-of-line
                    operator==() = default
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: leo at adberg dot com
  Target Milestone: ---

I was trying to define a default equality operator out of line for a struct
that contains a member without an equality operator. Clang errors with the
correct reason because it shouldn't be possible:
"defaulted 'operator==' is implicitly deleted because there is no viable
three-way comparison function for member 'f'"

GCC 11.1 correctly errors too, but 11.2 and above all crash with an internal
compiler error. See the example here: https://godbolt.org/z/WcbTaGonK

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

end of thread, other threads:[~2023-01-06 16:06 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-19 22:15 [Bug c++/106361] New: Internal compiler error when creating an out-of-line operator==() = default leo at adberg dot com
2022-07-19 22:19 ` [Bug c++/106361] " pinskia at gcc dot gnu.org
2022-07-19 22:21 ` [Bug c++/106361] [11/12/13 Regression] " pinskia at gcc dot gnu.org
2022-07-19 22:22 ` pinskia at gcc dot gnu.org
2022-07-19 22:24 ` leo at adberg dot com
2022-07-19 22:25 ` mpolacek at gcc dot gnu.org
2022-07-19 22:25 ` pinskia at gcc dot gnu.org
2022-07-21 21:21 ` cvs-commit at gcc dot gnu.org
2022-07-21 21:23 ` cvs-commit at gcc dot gnu.org
2022-07-22  5:40 ` cvs-commit at gcc dot gnu.org
2023-01-06 16:06 ` ppalka 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).