This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: [Bug c++/2316] g++ fails to overload on language linkage
- From: Andrew Pinski <pinskia at gmail dot com>
- To: gcc-bugzilla at gcc dot gnu dot org
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 14 Oct 2006 20:28:32 -0700
- Subject: Re: [Bug c++/2316] g++ fails to overload on language linkage
- References: <bug-2316-1186@http.gcc.gnu.org/bugzilla/> <20061015032455.22269.qmail@sourceware.org>
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