From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25380 invoked by alias); 29 Mar 2012 19:59:13 -0000 Received: (qmail 25371 invoked by uid 22791); 29 Mar 2012 19:59:12 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 29 Mar 2012 19:59:00 +0000 From: "manu at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/40942] GCC accepts code that Comeau and MSVC deems invalid. Date: Thu, 29 Mar 2012 20:00: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-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: manu at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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 X-SW-Source: 2012-03/txt/msg02614.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D40942 Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |manu at gcc dot gnu.org --- Comment #7 from Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez 2012-03-29 19:58:34 UTC --- Clang prints: /tmp/webcompile/_25725_0.cc:15:5: error: call to constructor of 'S' is ambiguous S s1 ("test"); ^ ~~~~~~ /tmp/webcompile/_25725_0.cc:4:3: note: candidate constructor [with T =3D ch= ar] S (T const *) ^ /tmp/webcompile/_25725_0.cc:8:3: note: candidate constructor [with N =3D 5] S (char const (&)[N]) ^ /tmp/webcompile/_25725_0.cc:1:8: note: candidate is the implicit copy constructor struct S ^ 1 error generated.