http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59389
Paul Pluzhnikov <ppluzhnikov at google dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |rejects-valid Status|RESOLVED |UNCONFIRMED Resolution|INVALID |--- --- Comment #2 from Paul Pluzhnikov <ppluzhnikov at google dot com> --- Here is the test that compiles with Clang but not GCC (added explicit to Foo::Foo): #include <string> #include <vector> #include <map> struct Foo { explicit Foo(const std::map<std::string, std::vector<std::string>>& machines); }; int main() { Foo foo2({{"abc", {"aaa", "bbb"}}}); // OK Foo foo1({{"abc", {"aaa"}}}); // Error. }