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: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Wolfgang Bangerth <bangerth at ices dot utexas dot edu>
- Cc: gcc at gcc dot gnu dot org, Nathanael Nerode <neroden at twcny dot rr dot com>
- Date: 10 Jul 2003 08:35:36 +0200
- Subject: Re: RFA: __imag__ and __real__ in C++ (bug 11437)
- Organization: Integrable Solutions
- References: <200307091756.00644.bangerth@ices.utexas.edu>
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