This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/18882] [3.3/3.4 Regression] wrong results of pow( complex<long double>(2, 1), odd integer )


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]