This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52522] Overloaded functions called with initializer lists considered ambiguous
- 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: Wed, 07 Mar 2012 18:32:56 +0000
- Subject: [Bug c++/52522] Overloaded functions called with initializer lists considered ambiguous
- Auto-submitted: auto-generated
- References: <bug-52522-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52522
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-03-07 18:32:56 UTC ---
Clang gives a very similar result, so I'm not convinced it's a bug:
t.cc:12:2: error: call to 'horizontalConcat' is ambiguous
horizontalConcat({a,b});
^~~~~~~~~~~~~~~~
t.cc:6:8: note: candidate function
Matrix horizontalConcat(const std::vector<Vector>& vectors);
^
t.cc:7:8: note: candidate function
Matrix horizontalConcat(const std::vector<Matrix>& matrices);
^