This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/40685] explicit constructor is used where only implicit ctors are allowed
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 18 Aug 2011 15:31:23 +0000
- Subject: [Bug c++/40685] explicit constructor is used where only implicit ctors are allowed
- Auto-submitted: auto-generated
- References: <bug-40685-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40685
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |4.7.0
Known to fail| |4.5.2, 4.6.1
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-08-18 15:31:23 UTC ---
4.6 incorrectly gives an error:
e.cc:25:9: error: converting to 'A' from initializer list would use explicit
constructor 'A::A(Enum)'
and 4.7 compiles it correctly, so I think this is now fixed