[LLVMbugs] [Bug 18382] New: /usr/include/c++/v1/cmath:431:1: error: functions that differ only in their return type cannot be overloaded

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Jan 4 04:32:04 PST 2014


http://llvm.org/bugs/show_bug.cgi?id=18382

            Bug ID: 18382
           Summary: /usr/include/c++/v1/cmath:431:1: error: functions that
                    differ only in their return type cannot be overloaded
           Product: libc++
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: hhinnant at apple.com
          Reporter: octoploid at yandex.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

On Linux with glibc trunk I get:

/usr/include/c++/v1/cmath:431:1: error: functions that differ only in their
return type cannot be overloaded
isnan(double __x) _NOEXCEPT
^
/usr/include/bits/mathcalls.h:234:19: note: previous declaration is here
__MATHDECL_1 (int,isnan,, (_Mdouble_ __value)) __attribute__ ((__const__));
                  ^
/usr/include/math.h:63:31: note: expanded from macro '__MATHDECL_1'
  extern type __MATH_PRECNAME(function,suffix) args __THROW
                              ^
/usr/include/math.h:66:42: note: expanded from macro '__MATH_PRECNAME'
#define __MATH_PRECNAME(name,r) __CONCAT(name,r)
                                         ^
/usr/include/sys/cdefs.h:88:23: note: expanded from macro '__CONCAT'
#define __CONCAT(x,y)   x ## y
                        ^

Started with r198431.

-- 
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/20140104/907c0059/attachment.html>


More information about the llvm-bugs mailing list