[llvm-bugs] [Bug 31473] New: stddef.h does not define ::nullptr_t in C++
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Dec 26 09:26:09 PST 2016
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: unassignedclangbugs at nondot.org
Reporter: ambrop7 at gmail.com
CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20161226/1dca8b2b/attachment.html>
More information about the llvm-bugs
mailing list