public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "marc.glisse at normalesup dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/2316] g++ fails to overload on language linkage
Date: Sat, 03 Sep 2011 13:02:00 -0000	[thread overview]
Message-ID: <bug-2316-4-Yfb2todUSU@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-2316-4@http.gcc.gnu.org/bugzilla/>

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=2316

Marc Glisse <marc.glisse at normalesup dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #25140|0                           |1
        is obsolete|                            |

--- Comment #32 from Marc Glisse <marc.glisse at normalesup dot org> 2011-09-03 13:00:20 UTC ---
Created attachment 25181
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25181
remember linkage of a function type (3)

This version of the patch, with -fpermissive and without -Werror, bootstraps
gcc without requiring any patching. -fpermissive does most of the work of
allowing any conversion, I only had to add some code so "&operator new[]"
(overloaded) knew which conversion to pick.

Obviously the patch needs completing (I am certainly missing many things),
cleaning up, and additional work to allow conversions without -fpermissive, and
only those that differ only by extern "C" somewhere. In other words it still
needs to be (re)written ;-)

But I think it is very encouraging that it compiles gcc (including libstdc++)
without any patching (but lots of warnings), which means this bug might be
fixed without breaking too much user code (we can be more lax than sunpro,
which rejects gcc sources in 2 places). And I don't think it introduces too
much ambiguity (overloading on linkage still works on a few tests).


  parent reply	other threads:[~2011-09-03 13:02 UTC|newest]

Thread overview: 49+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-2316-4@http.gcc.gnu.org/bugzilla/>
2011-08-30  1:17 ` marc.glisse at normalesup dot org
2011-08-30  9:31 ` redi at gcc dot gnu.org
2011-08-30  9:40 ` marc.glisse at normalesup dot org
2011-08-30 10:53 ` redi at gcc dot gnu.org
2011-08-30 11:32 ` redi at gcc dot gnu.org
2011-08-30 11:43 ` marc.glisse at normalesup dot org
2011-08-30 12:26 ` redi at gcc dot gnu.org
2011-08-30 12:35 ` redi at gcc dot gnu.org
2011-08-30 13:20 ` marc.glisse at normalesup dot org
2011-08-30 19:34 ` marc.glisse at normalesup dot org
2011-08-30 20:48 ` marc.glisse at normalesup dot org
2011-08-31 14:15 ` marc.glisse at normalesup dot org
2011-09-03 13:02 ` marc.glisse at normalesup dot org [this message]
2011-09-04 11:07 ` marc.glisse at normalesup dot org
2011-09-15 17:13 ` marc.glisse at normalesup dot org
2012-01-02  0:19 ` marc.glisse at normalesup dot org
2012-01-02  1:05 ` redi at gcc dot gnu.org
2012-01-02  2:33 ` pinskia at gcc dot gnu.org
2012-01-02 10:40 ` marc.glisse at normalesup dot org
2012-01-04 11:14 ` marc.glisse at normalesup dot org
2012-01-04 11:54 ` redi at gcc dot gnu.org
2012-01-04 12:28 ` bangerth at gmail dot com
2012-01-04 12:48 ` jakub at gcc dot gnu.org
2012-01-04 12:54 ` marc.glisse at normalesup dot org
2012-01-04 13:00 ` redi at gcc dot gnu.org
2012-01-04 13:06 ` marc.glisse at normalesup dot org
2012-02-22 12:56 ` xiaoyuanbo at yeah dot net
2014-03-01 18:17 ` harald at gigawatt dot nl
2014-03-01 18:52 ` glisse at gcc dot gnu.org
2014-03-02 15:41 ` amylaar at gcc dot gnu.org
2014-03-08  1:36 ` harald at gigawatt dot nl
2014-03-08  8:16 ` glisse at gcc dot gnu.org
2014-04-21 19:39 ` harald at gigawatt dot nl
2021-12-14 22:50 ` eric-bugs at omnifarious dot org
     [not found] <bug-2316-1186@http.gcc.gnu.org/bugzilla/>
2006-07-07 20:53 ` pinskia at gcc dot gnu dot org
2006-09-12 16:55 ` pinskia at gcc dot gnu dot org
2006-10-10 16:34 ` pinskia at gcc dot gnu dot org
2006-10-10 20:07 ` bkoz at gcc dot gnu dot org
2006-10-15  3:25 ` gcc-bugzilla at kayari dot org
2006-10-15  3:28   ` Andrew Pinski
2006-10-15  3:29 ` pinskia at gmail dot com
2006-12-04 15:54 ` marc dot glisse at normalesup dot org
2009-06-04 14:36 ` pinskia at gcc dot gnu dot org
2009-06-04 14:50 ` paolo dot carlini at oracle dot com
2009-06-05  4:23 ` marc dot glisse at normalesup dot org
2009-11-12  4:55 ` jason at gcc dot gnu dot org
     [not found] <20010318174600.2316.sebor@roguewave.com>
2005-09-09 12:56 ` rguenth at gcc dot gnu dot org
2005-09-09 14:27 ` gdr at integrable-solutions dot net
2005-09-11 21:34 ` sebor at roguewave dot com

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-2316-4-Yfb2todUSU@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: link
Be 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).