std::optional defaut constructor

Ville Voutilainen ville.voutilainen@gmail.com
Thu Jun 4 11:43:42 GMT 2020


On Thu, 4 Jun 2020 at 14:41, Richard Biener <richard.guenther@gmail.com> wrote:
> Doesn't the placement new make the memory state of anything
> not explicitely initialized indeterminate?  That is, isn't the
> testcase broken anyways since GCC can elide the memset
> when seeing the placement new?

Hmm, yes it does, and the test is broken.


More information about the Libstdc++ mailing list