This is the mail archive of the
mailing list for the GCC project.
Re: V3 PATCH to std_complex.h
- From: "Joseph S. Myers" <jsm at polyomino dot org dot uk>
- To: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- Cc: libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Sun, 30 May 2004 16:02:29 +0000 (UTC)
- Subject: Re: V3 PATCH to std_complex.h
- References: <email@example.com>
On Sun, 30 May 2004, Gabriel Dos Reis wrote:
> This patch makes V3 complex<> operations forward to GCC built-ins, now
> that they are available in GCC-3.5.0.
Are there in principle namespace issues here, because the built-ins may
expand to calls to C99 functions, and the names of those functions are not
reserved in C++ so a conforming C++ program might define extern "C"
functions with those names but different semantics? The unconditional
predefinition of _GNU_SOURCE and similar macros for C++ means there are
much bigger ways in which the C namespace is not respected by g++ -ansi,
and I don't know if there are any current plans for fixing this (cf.
<http://gcc.gnu.org/ml/gcc/2001-06/msg00313.html>, many other discussions
and bug 11196), but it seems like something to bear in mind if there is an
aspiration to eventual full conformance to C++03.
Joseph S. Myers