This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/2316] g++ fails to overload on language linkage
- From: "pinskia at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Oct 2006 03:29:01 -0000
- Subject: [Bug c++/2316] g++ fails to overload on language linkage
- References: <bug-2316-1186@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #14 from pinskia at gmail dot com 2006-10-15 03:29 -------
Subject: Re: g++ fails to overload on language linkage
On Sun, 2006-10-15 at 03:24 +0000, gcc-bugzilla at kayari dot org wrote:
>
> ------- Comment #13 from gcc-bugzilla at kayari dot org 2006-10-15 03:24 -------
> If this ever gets fixed (which I hope it does) then maybe it should depend on
> -std=c++98 so this continues to work by default, or it will break a lot of code
> that incorrectly passes extern "C++" functions to e.g. pthread_create and
> sigaction. That's a lot of code.
The problem is -std=c++98 vs no options should not produce different
code which can happen as shown in this bug already, that we have wrong
code.
-- Pinski
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=2316