http://llvm.org/bugs/show_bug.cgi?id=10391
Summary: 'nullptr' in C++03 mode is a macro that violates
assumptions
Product: libc++
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
When compiler 'nullptr' support is not available, 'nullptr' is defined as a
macro, and this is visible in user code. As a consequence, this makes valid use
of 'nullptr' illegal as well as violating a few critical assumptions since it
doesn't behave as a true 'nullptr_t' would. In particular,
'reinterpret_cast<ptrdiff_t>(nullptr)' does not work, and a test for this
behavior fails as a result.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs