This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Problems with PR 21210
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Zack Weinberg <zack at codesourcery dot com>
- Cc: "Nathan (Jasper) Myers" <ncm at codesourcery dot com>, Mark Mitchell <mark at codesourcery dot com>, Benjamin Kosnik <bkoz at redhat dot com>, jason at redhat dot com, libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org, nathan at codesourcery dot com
- Date: 01 Jun 2005 08:24:30 +0200
- Subject: Re: Problems with PR 21210
- References: <200505292006.j4TK6ktK008048@sethra.codesourcery.com><xyphdgkpc53.fsf@miranda.boston.redhat.com><429B9AAF.30509@codesourcery.com><m34qckfc3j.fsf@uniton.integrable-solutions.net><429BBDDE.10301@codesourcery.com><20050531170242.6a3d8f55.bkoz@redhat.com><429CE32D.3060801@codesourcery.com><20050601023843.GC8966@codesourcery.com><429D26F1.30609@codesourcery.com><20050601034004.GD8966@codesourcery.com><87ll5uk96v.fsf@codesourcery.com>
Zack Weinberg <zack@codesourcery.com> writes:
| > This also depends on somebody not myself doing a not-insubstantial
| > amount of core compiler work to make it happen; and somebody else
| > jimmying the libstdc++ headers to match, presumably a lesser task.
|
| I gotta wonder how much of the way there it would get us if we could
| write
|
| template <typename T> class complex;
| template <>
| typedef _Complex double complex<double>;
If we do that, we mutate C++ because we would have now introduced an
implicit conversion of a std:complex<double> to its real part, where
it did not exist before.
-- Gaby