[Bug c++/82336] [6/7/8 Regression] GCC requires but does not emit defaulted constructors in certain cases

mukesh.kapoor at oracle dot com gcc-bugzilla@gcc.gnu.org
Tue Nov 21 16:52:00 GMT 2017


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

Mukesh Kapoor <mukesh.kapoor at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mukesh.kapoor at oracle dot com

--- Comment #2 from Mukesh Kapoor <mukesh.kapoor at oracle dot com> ---
The compiler fails to generate the constructor bar::bar().
If you change the line

void qux(baz = {}){}

to

void qux(baz = (baz){}){}

it works fine.


More information about the Gcc-bugs mailing list