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++/40685] explicit constructor is used where only implicit ctors are allowed


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


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