This is the mail archive of the gcc-bugs@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]

Re: g77: dreal, dimag, and dcmplx


>complex*16 Z
>real*8 a, b
>a = real (Z) 
>b = imag (Z)
>
>g77 -Wall only complains about real should be "dreal" (okay, it says it is
>ambiguous and point you to "info -f g77 complex" or something like that),
>but it doesn't moan about imag should be "dimag". Surely that should be
>implemented for uniform behaviour? 

That's very tempting for me to do.  ;-)

But, the problem doesn't exist for IMAG, because there's no ambiguity;
IMAG means only "extract imaginary part".  Whereas, REAL means either
"extract real part" or "convert to single-precision", depending on
who you talk to (or what code you look at) at any one time.

Personally, I love symmetry, orthagonality, elegance, beauty, and
chocolate...but I still work on g77.  :)

        tq vm, (burley)


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