[Bug c++/50371] New: [C++0x] std::nullptr_t rejected as non-type template-parameter
daniel.kruegler at googlemail dot com
gcc-bugzilla@gcc.gnu.org
Tue Sep 13 00:19:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50371
Bug #: 50371
Summary: [C++0x] std::nullptr_t rejected as non-type
template-parameter
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: daniel.kruegler@googlemail.com
CC: jason@redhat.com
This is a placeholder entry to add support for std::nullptr_t as non-type
template-parameter (14.1 p4).
gcc 4.7.0 20110903 (experimental) in C++0x mode rejects the following code:
template<decltype(nullptr)>
struct nt;
"error: 'std::nullptr_t' is not a valid type for a template constant parameter"
The code should be accepted.
More information about the Gcc-bugs
mailing list