------- Comment #5 from kargl at gcc dot gnu dot org 2008-04-14 23:10 -------
(In reply to comment #4)
> Anyway, I'm reassigning this to middle-end, since regardless of optimization
> level the gfortran frontend generates identical trees. Attached is a roughly
> equivalent C testcase for the middle-end guys:
>
> #include <stdio.h>
> #include <complex.h>
>
> // Compile with -std=c99 -lm
>
> int main(void)
> {
> double complex nan_inf, normal_number, cmplx_test;
> double tth = 0.6666666666666667;
> normal_number = tth + I*0;
> nan_inf = 1.0/0.0 + I*(0.0/0.0);
> cmplx_test = nan_inf * normal_number;
> printf ("nan_inf (%f, %f)\n", creal(nan_inf), cimag(nan_inf));
> printf ("nan_inf * (tth,0): (%f, %f)\n", creal(cmplx_test),
> cimag(cmplx_test));
> cmplx_test = nan_inf * tth;
> printf ("nan_inf * tth: (%f, %f)\n", creal(cmplx_test),
> cimag(cmplx_test));
> }
This is probably a duplicate of PR 24581.
AFAICT from the audit trail, this will never be fixed.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35877