[Bug math/23277] New: nan function should not have const attribute

jsm28 at gcc dot gnu.org sourceware-bugzilla@sourceware.org
Tue Jun 12 16:05:00 GMT 2018


https://sourceware.org/bugzilla/show_bug.cgi?id=23277

            Bug ID: 23277
           Summary: nan function should not have const attribute
           Product: glibc
           Version: 2.27
            Status: NEW
          Severity: normal
          Priority: P2
         Component: math
          Assignee: unassigned at sourceware dot org
          Reporter: jsm28 at gcc dot gnu.org
  Target Milestone: ---

As in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86113 for __builtin_nan,
bits/mathcalls.h wrongly declares the nan function with the __const__
attribute.  Because the function reads memory pointed to by an argument, it's
only pure, not const.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Glibc-bugs mailing list