https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116473
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
Last reconfirmed| |2024-08-28
Keywords|rejects-valid |diagnostic
Summary|std::ranges::to vs |Better diagnostic for
|constexpr |dynamic allocation that
| |isn't freed by constant
| |expression
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Agreed. But maybe we could improve the "because it refers to a result of
operator new" diagnostic.
The problem isn't that the pipeline expression refers to the result of operator
new, it's that it doesn't deallocate it before the end of the constant
expression.