Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Jan 2008 16:09:11 -0500
From:      David Schultz <das@FreeBSD.ORG>
To:        Pieter de Goeje <pieter@degoeje.nl>
Cc:        freebsd-bugs@FreeBSD.ORG
Subject:   Re: gnu/65641: Use of llabs() in C++ fails as ambiguous
Message-ID:  <20080112210911.GA3277@VARK.MIT.EDU>
In-Reply-To: <200801121830.m0CIU3Kb009979@freefall.freebsd.org>
References:  <200801121830.m0CIU3Kb009979@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jan 12, 2008, Pieter de Goeje wrote:
> The following reply was made to PR gnu/65641; it has been noted by GNATS.
> 
> From: Pieter de Goeje <pieter@degoeje.nl>
> To: bug-followup@freebsd.org, lennox@cs.columbia.edu
> Cc:  
> Subject: Re: gnu/65641: Use of llabs() in C++ fails as ambiguous
> Date: Sat, 12 Jan 2008 19:27:23 +0100
> 
>  Test program works fine on FreeBSD 7. It seems the problem was fixed in GCC 
>  4.2.

The GNU C++ header files include the corresponding C header files
with some magic to make symbols appear in the correct namespace.
Often this doesn't have exactly the correct effect, or stuff leaks
into the global namespace. However, much of this is hard to fix,
and when you do fix it, broken apps that depended on the namespace
leakage break. This is probably related to your problem, and if so,
it's a glibstdc++ problem, not a gcc problem. In any case, it seems
to have been fixed in more recent versions of FreeBSD...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080112210911.GA3277>