This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: RFA: __imag__ and __real__ in C++ (bug 11437)
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Nathanael Nerode <neroden at twcny dot rr dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: 11 Jul 2003 13:53:08 -0700
- Subject: Re: RFA: __imag__ and __real__ in C++ (bug 11437)
- Organization: CodeSourcery, LLC
- References: <20030709220306.GA1161@doctormoo>
On Wed, 2003-07-09 at 15:03, Nathanael Nerode wrote:
> This is just a proof of concept. In particular, the mangling chosen
> was arbitrary and probably wrong. :-)
>
> But I'd like a C++ person to look at bug 11437, and at my analysis and
> see what should be done. An alternative solution is to remove _Complex
> support from C++, of course.
Your patch is OK -- except that you can't count. :-) Or, rather, you
didn't know you were supposed to count. :-) The mangling should be
"v18__imag__" since there is 1 argument and 8 characters in "__imag__".
Similarly for "__real__".
Please make that change and check it in!
--
Mark Mitchell <mark@codesourcery.com>
CodeSourcery, LLC