RFA: __imag__ and __real__ in C++ (bug 11437)

Mark Mitchell mark@codesourcery.com
Fri Jul 11 21:40:00 GMT 2003


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



More information about the Gcc mailing list