This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/82336] [6/7/8 Regression] GCC requires but does not emit defaulted constructors in certain cases
- From: "mukesh.kapoor at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 21 Nov 2017 16:52:48 +0000
- Subject: [Bug c++/82336] [6/7/8 Regression] GCC requires but does not emit defaulted constructors in certain cases
- Auto-submitted: auto-generated
- References: <bug-82336-4@http.gcc.gnu.org/bugzilla/>
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.