libstdc++/10689: pow(std::complex(0),1/3) returns (nan, nan) instead of 0.

Gabriel Dos Reis gdr@integrable-solutions.net
Sun May 18 15:21:00 GMT 2003


bkoz@gcc.gnu.org writes:

| Synopsis: pow(std::complex(0),1/3) returns (nan, nan) instead of 0.
| 
| Responsible-Changed-From-To: unassigned->gdr
| Responsible-Changed-By: bkoz
| Responsible-Changed-When: Fri May 16 20:04:27 2003
| Responsible-Changed-Why:
|     Maybe you could triage this? It's either runtime or __builtin I think.

It is not __builtin.  It is runtime.
A proper way to fix this is to to use __builtin where appropriate and
runtime where not.  The traditional approach is through  traits.  Will
handle that, after I applied the name lookup patch.  This week is too
heavy...

-- Gaby



More information about the Gcc-bugs mailing list