[llvm-bugs] [Bug 40981] New: Audit <cxxxx> header files for compliance with [depr.c.headers.other]

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Mar 6 09:14:02 PST 2019


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

            Bug ID: 40981
           Summary: Audit <cxxxx> header files for compliance with
                    [depr.c.headers.other]
           Product: libc++
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: mclow.lists at gmail.com
                CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com

Review our header files for compliance with [depr.c.headers.other], which says:

> Every C header other than <complex.h>, <iso646.h>, <stdalign.h>, <stdbool.h>, and <tgmath.h>, each of which has a name of the form <name.h>, behaves as if each name placed in the standard library namespace by the corresponding <cname > header is placed within the global namespace scope, except for the functions described in 25.8.5, the declaration of std::byte (16.2.1), and the functions and function templates described in 16.2.5. It is unspecified whether these names are first declared or defined within namespace scope (6.3.6) of the namespace std and are then injected into the global namespace scope by explicit using-declarations (9.8).

I'm pretty sure we don't do this for the three-argument hypot, and there may be
others.

-- 
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/20190306/da58707d/attachment.html>


More information about the llvm-bugs mailing list