[llvm-bugs] [Bug 30685] New: clang 3.9 targeting mingw fails for __float128 (from type_traits) with -std=gnu++0x

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Oct 13 00:36:52 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=30685

            Bug ID: 30685
           Summary: clang 3.9 targeting mingw fails for __float128 (from
                    type_traits) with -std=gnu++0x
           Product: clang
           Version: 3.9
          Hardware: PC
                OS: Windows 2000
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: nikolai.kosjar at qt.io
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

The file reproduce.cpp with the content

    #include <type_traits>
    int main() {}

can be compiled just fine with clang 3.8:

 > clang.exe -target i686-w64-mingw32 -std=gnu++0x reproduce.cpp
 >

while clang 3.9 produces an error:

 > clang.exe -target i686-w64-mingw32 -std=gnu++0x reproduce.cpp
 In file included from reproduce.cpp:1:

D:\usr\qt-5.6.0-mingw492_32\Tools\mingw492_32\i686-w64-mingw32\include\c++\type_traits:279:39:
error: __float128 is not supported on this target
     struct __is_floating_point_helper<__float128>
                                       ^
 1 error generated.
 >

Note: Works fine with -std=c++11 instead of -std=gnu++0x.

Relevant change seems to be https://reviews.llvm.org/rL268898 - looks like
mingw was forgotten?

(There is some history before, e.g. original/initial change was
https://reviews.llvm.org/rL266186, then it was reverted with
https://reviews.llvm.org/rL266460)

-- 
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/20161013/89c9bd20/attachment.html>


More information about the llvm-bugs mailing list