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

Gabriel Dos Reis gdr@integrable-solutions.net
Thu Jul 10 07:30:00 GMT 2003


Wolfgang Bangerth <bangerth@ices.utexas.edu> writes:

| > 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.
| 
| I certainly don't have much to say here, but if you'd ask me: get rid of this 
| stuff. C++ has a perfectly C++-style complex class, and __imag__/__real__ 
| operators are just plain ugly [1]. 

Although the syntax might look ugly (I don't really like the whole
thing), removing support for __complex__ from cc1plus is out of
question.  There are far many ways in which cc1plus  has to grok those
documented harmless GNU extensions. 

If you're looking for removal of documented harmful extensions, start
with statement-expressions :-)

-- Gaby



More information about the Gcc mailing list