[llvm-bugs] [Bug 28738] New: fmod and similar method static_assert on aix

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jul 27 02:56:56 PDT 2016


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

            Bug ID: 28738
           Summary: fmod and similar method static_assert on aix
           Product: libc++
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: guojiufu at gmail.com
                CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com
    Classification: Unclassified

for below code
  float fa = 0.8;
  float fb = 0.5;
  float fr = 0.0;
  fr = fmod(fa, fb); 

using libc++, there is an static assert on AIX.  

#if !(defined(_LIBCPP_MSVCRT) || defined(_AIX))
inline _LIBCPP_INLINE_VISIBILITY float       fmod(float __lcpp_x, float
__lcpp_y) _NOEXCEPT         \
    {return fmodf(__lcpp_x, __lcpp_y);}
inline _LIBCPP_INLINE_VISIBILITY long double fmod(long double __lcpp_x, long
double __lcpp_y) _NOEXC\
EPT {return fmodl(__lcpp_x, __lcpp_y);}
#endif

Why _AIX is kicked out here?

-- 
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/20160727/9a071ef6/attachment.html>


More information about the llvm-bugs mailing list