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: unassignedclangb...@nondot.org
          Reporter: nikolai.kos...@qt.io
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to