[Bug c++/106040] gcc reports error in aggregate when member has explicit constructor
pj at patrickjohnston dot org
gcc-bugzilla@gcc.gnu.org
Wed Jun 22 07:56:56 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106040
pj at patrickjohnston dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pj at patrickjohnston dot org
--- Comment #2 from pj at patrickjohnston dot org ---
Note that http://eel.is/c++draft/dcl.init.aggr#4.2
> the element is copy-initialized from the corresponding initializer-clause or is initialized with the brace-or-equal-initializer of the corresponding designated-initializer-clause
possibly suggests that copy initialisation semantics are used (meaning no
explicit conversion), dependent on if your interpretation agrees that the
"copy-initialized" bit still applies to the brace-or-equal-initializer bit
More information about the Gcc-bugs
mailing list