[Bug c++/52522] Overloaded functions called with initializer lists considered ambiguous

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Mar 7 18:33:00 GMT 2012


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);
       ^



More information about the Gcc-bugs mailing list