public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/105846] New: constexpr unique_ptr doesn't work with virtual types
@ 2022-06-04 16:15 benni at stuerz dot xyz
  2022-06-04 17:07 ` [Bug c++/105846] " benni at stuerz dot xyz
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: benni at stuerz dot xyz @ 2022-06-04 16:15 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 105846
           Summary: constexpr unique_ptr doesn't work with virtual types
           Product: gcc
           Version: 12.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: benni at stuerz dot xyz
  Target Milestone: ---

I stumbled on this bug while creating my own constexpr smart pointers.
This does NOT happen with clang + libstdc++!

A short demonstration/explanation of the problem:
https://godbolt.org/z/va4nYjhbe

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

end of thread, other threads:[~2022-07-13 22:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-04 16:15 [Bug c++/105846] New: constexpr unique_ptr doesn't work with virtual types benni at stuerz dot xyz
2022-06-04 17:07 ` [Bug c++/105846] " benni at stuerz dot xyz
2022-06-04 21:36 ` pinskia at gcc dot gnu.org
2022-06-04 21:39 ` [Bug c++/105846] [C++2b] " pinskia at gcc dot gnu.org
2022-06-04 21:40 ` pinskia at gcc dot gnu.org
2022-06-06 12:57 ` redi at gcc dot gnu.org
2022-07-13 22:45 ` pinskia 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).