This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: <addr_expr <realpart_expr <x>>> ?


Richard Henderson <rth@redhat.com> writes:

| On Sun, Jan 11, 2004 at 03:09:01AM +0100, Gabriel Dos Reis wrote:
| > However, what I meant is this
| > 
| >     double* r = ((double)(*)[2])&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.

-- Gaby


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]