public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "manu at gcc dot gnu.org" <gcc-bugzilla@gcc.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 [thread overview] Message-ID: <bug-40942-4-y1SAx9Gaq0@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-40942-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40942 Manuel López-Ibáñez <manu at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |manu at gcc dot gnu.org --- Comment #7 from Manuel López-Ibáñez <manu at gcc dot gnu.org> 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 = char] S (T const *) ^ /tmp/webcompile/_25725_0.cc:8:3: note: candidate constructor [with N = 5] S (char const (&)[N]) ^ /tmp/webcompile/_25725_0.cc:1:8: note: candidate is the implicit copy constructor struct S ^ 1 error generated.
next prev parent reply other threads:[~2012-03-29 19:59 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <bug-40942-4@http.gcc.gnu.org/bugzilla/> 2012-03-29 13:43 ` redi at gcc dot gnu.org 2012-03-29 17:53 ` vhaisman at gmail dot com 2012-03-29 20:00 ` manu at gcc dot gnu.org [this message] 2012-03-30 16:20 ` dodji at gcc dot gnu.org 2012-03-31 17:07 ` dodji at seketeli dot org 2012-04-02 8:53 ` dodji at gcc dot gnu.org 2012-04-02 8:57 ` dodji at gcc dot gnu.org 2021-08-23 7:24 ` pinskia at gcc dot gnu.org 2009-08-02 14:48 [Bug c++/40942] New: " v dot haisman at sh dot cvut dot cz 2009-08-04 12:55 ` [Bug c++/40942] " jwakely dot gcc at gmail dot com 2009-08-25 13:25 ` bangerth at gmail dot com 2009-08-25 14:20 ` v dot haisman at sh dot cvut dot cz 2009-08-25 14:49 ` tom at kera dot name
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-40942-4-y1SAx9Gaq0@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).