pt.c (build_non_dependent_expr): Don't check null_ptr_cst_p, do call maybe_constant_v...
authorJason Merrill <jason@redhat.com>
Wed, 11 May 2011 21:29:49 +0000 (17:29 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 11 May 2011 21:29:49 +0000 (17:29 -0400)
commitf5ad54d7786c2cfa42d9e3afe1fdff209aea023d
tree1e2d01a6e37dc49c0266ecd7f0b0e873cd01cf20
parent3e475d30a363db90039aec1239fcfc1a15e202aa
pt.c (build_non_dependent_expr): Don't check null_ptr_cst_p, do call maybe_constant_value in C++0x mode.

* pt.c (build_non_dependent_expr): Don't check null_ptr_cst_p,
do call maybe_constant_value in C++0x mode.
* semantics.c (cxx_eval_constant_expression): Handle TEMPLATE_DECL.

From-SVN: r173679
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/cp/semantics.c