This is the mail archive of the
mailing list for the GCC project.
Re: <addr_expr <realpart_expr <x>>> ?
Richard Henderson <firstname.lastname@example.org> writes:
| On Sun, Jan 11, 2004 at 03:09:01AM +0100, Gabriel Dos Reis wrote:
| > However, what I meant is this
| > double* r = ((double)(*))&z;
| > double* i = r + 1;
| This is even less standard conforming than the union, due to
| type aliasing.
No, it is standard.
[#13] Each complex type has the same representation and
alignment requirements as an array type containing exactly
two elements of the corresponding real type; the first
element is equal to the real part, and the second element to
the imaginary part, of the complex number.