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: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs