From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28328 invoked by alias); 4 Dec 2013 19:42:28 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 28310 invoked by uid 48); 4 Dec 2013 19:42:25 -0000 From: "ppluzhnikov at google dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/59389] [C++11] bogus error:=?UTF-8?Q?=20call=20of=20overloaded=20=E2=80=98Foo?=()=?UTF-8?Q?=E2=80=99=20is=20ambiguous?= Date: Wed, 04 Dec 2013 19:42:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: ppluzhnikov at google dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-12/txt/msg00321.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59389 Paul Pluzhnikov changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |rejects-valid Status|RESOLVED |UNCONFIRMED Resolution|INVALID |--- --- Comment #2 from Paul Pluzhnikov --- Here is the test that compiles with Clang but not GCC (added explicit to Foo::Foo): #include #include #include struct Foo { explicit Foo(const std::map>& machines); }; int main() { Foo foo2({{"abc", {"aaa", "bbb"}}}); // OK Foo foo1({{"abc", {"aaa"}}}); // Error. }