[LLVMbugs] [Bug 18756] Overzealous warning about C-linkage for complex<double>

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Feb 6 10:45:21 PST 2014


Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |richard-llvm at metafoo.co.uk
         Resolution|---                         |INVALID

--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> ---
std::complex<T> is required to have the same *memory* representation as
_Complex T, but it is *not* required to have the same representation when used
as a return type.

The representations as return types differ on i386-linux-gnu, for instance
(_Complex float is returned in a pair of integer registers; std::complex<float>
is returned by sret). Clang's warning is correct and appropriate.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140206/abd7b19a/attachment.html>

More information about the llvm-bugs mailing list