<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - wrong std::decay< const std::nullptr_t >::type"
href="http://llvm.org/bugs/show_bug.cgi?id=18352">18352</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>wrong std::decay< const std::nullptr_t >::type
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>3.3
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Macintosh
</td>
</tr>
<tr>
<th>OS</th>
<td>MacOS X
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>C++11
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>sizov@phys.ru
</td>
</tr>
<tr>
<th>CC</th>
<td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>#include <cstddef>
#include <type_traits>
#include <iostream>
#define test( _type ) \
{ \
bool s1 = std::is_same< _type, typename std::decay< const _type >::type
<span class="quote">>::value; \</span >
bool s2 = std::is_same< const _type *, typename std::decay< const _type
<span class="quote">>::type >::value; \</span >
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
}</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>