public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "jason at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/34691] [4.3/4.4/4.5 Regression] Default argument checking not performed after overload resolution with C linkage Date: Wed, 01 Apr 2009 15:29:00 -0000 [thread overview] Message-ID: <20090401152905.12955.qmail@sourceware.org> (raw) In-Reply-To: <bug-34691-15588@http.gcc.gnu.org/bugzilla/> ------- Comment #13 from jason at gcc dot gnu dot org 2009-04-01 15:29 ------- Created an attachment (id=17576) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17576&action=view) Patch for testcase #1 Here's a patch that gives an error for testcase #1. But it's not clear to me that we ought to have two functions in the overload set to begin with. For instance, that means that adding void (*fp)(int) = f; gives an ambiguity error, while it doesn't on EDG. If we were properly merging the two used functions together, we would have already chosen one of the default arguments by the time we get to the call, so this patch wouldn't have two candidates to compare. I suppose that it would be feasible to keep the two functions separate until overload resolution and then fix resolve_address_of_overloaded_function to combine them. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34691
next prev parent reply other threads:[~2009-04-01 15:29 UTC|newest] Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-01-06 20:31 [Bug c++/34691] New: Default argument checking not performed after overload resolution rideau3 at gmail dot com 2008-01-06 21:38 ` [Bug c++/34691] [4.1/4.2/4.3 Regression] Default argument checking not performed after overload resolution with C linkage rguenth at gcc dot gnu dot org 2008-01-11 8:18 ` jakub at gcc dot gnu dot org 2008-01-11 13:49 ` jakub at gcc dot gnu dot org 2008-01-11 14:12 ` jakub at gcc dot gnu dot org 2008-02-01 17:02 ` jsm28 at gcc dot gnu dot org 2008-05-19 20:32 ` [Bug c++/34691] [4.1/4.2/4.3/4.4 " jsm28 at gcc dot gnu dot org 2008-07-04 22:55 ` [Bug c++/34691] [4.2/4.3/4.4 " jsm28 at gcc dot gnu dot org 2009-01-16 20:03 ` jason at gcc dot gnu dot org 2009-02-11 21:31 ` jason at gcc dot gnu dot org 2009-03-25 21:10 ` jason at gcc dot gnu dot org 2009-03-26 16:10 ` jason at gcc dot gnu dot org 2009-03-31 20:19 ` [Bug c++/34691] [4.3/4.4/4.5 " jsm28 at gcc dot gnu dot org 2009-04-01 3:34 ` jason at gcc dot gnu dot org 2009-04-01 15:21 ` jason at gcc dot gnu dot org 2009-04-01 15:29 ` jason at gcc dot gnu dot org [this message] 2009-04-08 3:45 ` jason at gcc dot gnu dot org 2009-04-08 3:55 ` jason at gcc dot gnu dot org 2009-04-08 3:56 ` jason at gcc dot gnu dot org
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=20090401152905.12955.qmail@sourceware.org \ --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).