[Bug c++/112666] Missed optimization: Value initialization zero-initializes members with user-defined constructor
paisanafc at gmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Nov 23 15:37:32 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112666
--- Comment #4 from Francisco Paisana <paisanafc at gmail dot com> ---
One last thing, I might have misread this as well.
> "Zero-initialization is performed in the following situations:
> ...
> 2) As part of value-initialization sequence [...] for members of
> value-initialized class types that have no constructors."
I was interpreting it as "members that have no ctors of classes are zero-init".
However, this could be also read as "members of classes, where the classes have
no ctor, are zero-init."
More information about the Gcc-bugs
mailing list