------- Comment #2 from diepen at astron dot nl  2009-04-07 14:03 -------
The output does not show the correct results. It looks as if the imaginary part
of the complex number in the bind2nd object is incorrect. When debugging the
bind2nd object was constructed correctly, but when used in std::transform its
value was incorrect, in particular the imaginary part seems to be uninitialized
(as also reported by valgrind). As I said, this only happens for
complex<float>, not for complex<double>.

Originally I used my own Multiplies functor to multiply a float vector with a
complex<float> value and that failed similarly. But it appears to happen for
the simpler case as shown in my test program too. 


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39678

Reply via email to