From 08dc4c3dd7dd26d711a100abb6b0fe78dc712f99 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Mon, 23 May 2011 11:32:10 -0400 Subject: re PR c++/48617 ([C++0x] Problem with non-type template parameters and decltype) PR c++/48617 * pt.c (invalid_nontype_parm_type_p): Allow DECLTYPE_TYPE. From-SVN: r174070 --- gcc/cp/pt.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/cp/pt.c') diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index d72596f..380b21e 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -18089,6 +18089,8 @@ invalid_nontype_parm_type_p (tree type, tsubst_flags_t complain) return 0; else if (TREE_CODE (type) == TYPENAME_TYPE) return 0; + else if (TREE_CODE (type) == DECLTYPE_TYPE) + return 0; if (complain & tf_error) error ("%q#T is not a valid type for a template constant parameter", type); -- cgit v1.1