[Bug c++/59389] [C++11] bogus error: call of overloaded ‘Foo?=(<brace-enclosed initializer list>)=?UTF-8?Q?’ is ambiguous
ppluzhnikov at google dot com
gcc-bugzilla@gcc.gnu.org
Wed Dec 4 19:35:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59389
Paul Pluzhnikov <ppluzhnikov at google dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Paul Pluzhnikov <ppluzhnikov at google dot com> ---
Hmm, Clang also rejects this test:
t.cc:12:7: error: call to constructor of 'Foo' is ambiguous
Foo foo1({{"abc", {"aaa"}}}); // Error.
^ ~~~~~~~~~~~~~~~~~~
t.cc:5:8: note: candidate is the implicit move constructor
struct Foo {
^
t.cc:5:8: note: candidate is the implicit copy constructor
t.cc:6:3: note: candidate constructor
Foo(const std::map<std::string, std::vector<std::string>>&);
^
1 error generated.
I must have over-reduced the original.
More information about the Gcc-bugs
mailing list