This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/18882] [3.3/3.4 Regression] 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 16:28:29 -0000
- Subject: [Bug middle-end/18882] [3.3/3.4 Regression] 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 16:28 -------
>> Further, multiplications of complex<long double> and int or double
>> are unimplemented
> So, let's begin from the end: there is nothing *unimplemented* as far
> as operator* is concerned: have a look to section 26.2.1 of the Standard,
> there are *no* overloads taking two different template parameters.
Aha, that means that designers of the "new" Complex class had forgotten that a
complex number can be multiplied by an integer -- and thus broke compatibility
towards the "traditional" Complex class :-((
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18882