This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/77563] [5/6/7 Regression] explicit constructor breaks narrowing conversion overload resolution
- 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: Tue, 13 Sep 2016 08:45:58 +0000
- Subject: [Bug c++/77563] [5/6/7 Regression] explicit constructor breaks narrowing conversion overload resolution
- Auto-submitted: auto-generated
- References: <bug-77563-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77563
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Reduced:
struct A {
A(int) {}
A(unsigned) {} // Comment to make it work
explicit A(long) {} // Comment to make it work
};
void f(A) { }
int main() {
f(2);
f(3l);
}