[LLVMbugs] [Bug 18352] New: wrong std::decay< const std::nullptr_t >::type
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Jan 1 10:12:58 PST 2014
http://llvm.org/bugs/show_bug.cgi?id=18352
Bug ID: 18352
Summary: wrong std::decay< const std::nullptr_t >::type
Product: clang
Version: 3.3
Hardware: Macintosh
OS: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: C++11
Assignee: unassignedclangbugs at nondot.org
Reporter: sizov at phys.ru
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
#include <cstddef>
#include <type_traits>
#include <iostream>
#define test( _type ) \
{ \
bool s1 = std::is_same< _type, typename std::decay< const _type >::type
>::value; \
bool s2 = std::is_same< const _type *, typename std::decay< const _type
>::type >::value; \
std::cout << s1 << " " << s2 << std::endl; \
}
int main()
{
// OK
test( std::string )
// BAD
test( std::nullptr_t )
// compiled by clang:
// 1 0
// 0 1
// compiled by gcc48:
// 1 0
// 1 0
}
--
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/20140101/58617d95/attachment.html>
More information about the llvm-bugs
mailing list