This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/18882] wrong results of pow( complex<long double>(2, 1), odd integer )
- From: "mikulik at physics dot muni dot cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Dec 2004 09:01:49 -0000
- Subject: [Bug libstdc++/18882] wrong results of pow( complex<long double>(2, 1), odd integer )
- References: <20041208084814.18882.mikulik@physics.muni.cz>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From mikulik at physics dot muni dot cz 2004-12-08 09:01 -------
Results of pow(complex<long double>, int) calculated by GNU C++ 3.x are wrong.
Further, multiplications of complex<long double> and int or double are
unimplemented:
complex<long double> x, y;
y = 2 * x;
y = 2.0 * x;
And also
complex<double> x, y;
y = 2 * x;
y = x / 2;
Please fix it all. Thanks.
--
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |3.3.1 3.4.2
Known to work| |2.95
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18882