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.
Author: paolo Date: Thu Sep 22 18:20:53 2011 New Revision: 179096 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=179096 Log: /cp 2011-09-22 Paolo Carlini <paolo.carlini@oracle.com> PR c++/50371 * pt.c (invalid_nontype_parm_type_p): Handle NULLPTR_TYPE. /testsuite 2011-09-22 Paolo Carlini <paolo.carlini@oracle.com> PR c++/50371 * g++.dg/cpp0x/nullptr24.C: New. Added: trunk/gcc/testsuite/g++.dg/cpp0x/nullptr24.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/pt.c trunk/gcc/testsuite/ChangeLog
Done.