This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]