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

            Bug ID: 31473
           Summary: stddef.h does not define ::nullptr_t in C++
           Product: clang
           Version: 3.9
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Headers
          Assignee: unassignedclangb...@nondot.org
          Reporter: ambr...@gmail.com
                CC: llvm-bugs@lists.llvm.org
    Classification: Unclassified

When <stddef.h> is included in a C++ program, ::nullptr_t should be defined.
But only std::nullptr_t is.

Test case:

#include <stddef.h>
using Foo = nullptr_t;

$ clang++ -std=c++14 -c a.cpp
a.cpp:3:13: error: unknown type name 'nullptr_t'

See the same bug in GCC (which was fixed) with explanations: 
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54249

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to