public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/102090] New: Placement-new is not constexpr
@ 2021-08-27  3:29 friedkeenan at protonmail dot com
  2021-08-27  3:42 ` [Bug libstdc++/102090] " pinskia at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: friedkeenan at protonmail dot com @ 2021-08-27  3:29 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 102090
           Summary: Placement-new is not constexpr
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: friedkeenan at protonmail dot com
  Target Milestone: ---

When calling placement-new in a constant expression, a compiler error occurs
saying that `void* operator new(std::size_t, void*)` is not constexpr; see
https://godbolt.org/z/8enoG9G57 for a minimal example.

As far as I can tell, the fix should just be adding constexpr to the signature.

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

end of thread, other threads:[~2021-08-27 18:44 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-27  3:29 [Bug libstdc++/102090] New: Placement-new is not constexpr friedkeenan at protonmail dot com
2021-08-27  3:42 ` [Bug libstdc++/102090] " pinskia at gcc dot gnu.org
2021-08-27  3:43 ` pinskia at gcc dot gnu.org
2021-08-27  3:45 ` pinskia at gcc dot gnu.org
2021-08-27  3:52 ` friedkeenan at protonmail dot com
2021-08-27  4:00 ` pinskia at gcc dot gnu.org
2021-08-27  8:47 ` jakub at gcc dot gnu.org
2021-08-27  8:48 ` jakub at gcc dot gnu.org
2021-08-27 15:26 ` friedkeenan at protonmail dot com
2021-08-27 18:44 ` jakub 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).