------- Comment #1 from debian-gcc at lists dot debian dot org 2006-12-09 11:33 ------- Created an attachment (id=12774) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12774&action=view) preprocessed source
#include <complex.h> void testit(double complex* t, double* b) { b[0] = t[0]==0.0?0.0:-t[0]; } main(void) { static double complex k = 5; static double b; testit(&k,&b); } The following modification fixes the problem: void testit(double complex* t, double* b) { b[0] = t[0]==0.0?0.0:__real__(-t[0]); } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30132