[Bug c++/56418] <brace-enclosed initializer list> errors do not show the types (makes it hard to debug)
manu at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Feb 21 20:26:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56418
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |manu at gcc dot gnu.org
--- Comment #1 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 2013-02-21 20:26:24 UTC ---
Clang doesn't do much better:
test.cc:18:3: error: no matching function for call to 'foo'
foo({ 1, 2.3, 123 }); // error -- argument mismatch [8]
^~~
test.cc:4:6: note: candidate function not viable: cannot convert initializer
list argument to 'const Foo'
void foo(const Foo &f);
^
but at least it doesn't print ‘<brace-enclosed initializer list>’.
More information about the Gcc-bugs
mailing list