complex __real__ and __imag__ as lvalues

Gabriel Dos Reis gdr@integrable-solutions.net
Sat Apr 10 00:54:00 GMT 2004


Richard Henderson <rth@redhat.com> writes:

| On Fri, Apr 09, 2004 at 04:18:40PM -0500, Benjamin Kosnik wrote:
| > Can somebody who knows the complex bits in gcc confirm that this is
| > supported, intentionally?
| 
| Unfortunately, yes.  I hate this though, so if you can avoid
| using it, I'd appreciate it.

I would say it is unavoidable.  The alternative is to use ugly
reinterpret_cast<>; semantically I don't see what that changes.

-- Gaby



More information about the Gcc mailing list