[Bug c++/105846] New: constexpr unique_ptr doesn't work with virtual types

benni at stuerz dot xyz gcc-bugzilla@gcc.gnu.org
Sat Jun 4 16:15:52 GMT 2022


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


More information about the Gcc-bugs mailing list