This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/80943] Conversion function selected in list-initialization in C++1z mode
- From: "barry.revzin at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 01 Jun 2017 20:29:41 +0000
- Subject: [Bug c++/80943] Conversion function selected in list-initialization in C++1z mode
- Auto-submitted: auto-generated
- References: <bug-80943-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80943
--- Comment #1 from Barry Revzin <barry.revzin at gmail dot com> ---
Sorry, it's a bug, but not for the reasons I cited. Both T t(s) and T t{s}
should consider constructors - which should find T(S const& ) and T(T&& ) by
way of the conversion function. But the former is an exact match, so it should
be the one preferred.