[llvm-bugs] [Bug 43395] New: __is_signed doesn't work for floating point types

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Sep 21 10:39:55 PDT 2019


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

            Bug ID: 43395
           Summary: __is_signed doesn't work for floating point types
           Product: clang
           Version: 9.0
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: z.zoelec2 at gmail.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
                    neeilans at live.com, richard-llvm at metafoo.co.uk

The __is_signed builtin doesn't work for floating-point types. The following
compiles:
    static_assert(__is_signed(int));
But this does not:
    static_assert(__is_signed(float));
    static_assert(__is_signed(double));

-- 
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/20190921/c37632cc/attachment.html>


More information about the llvm-bugs mailing list