re PR c++/64455 (A constexpr variable template can't be used with enable_if)
authorJason Merrill <jason@redhat.com>
Tue, 6 Jan 2015 20:44:51 +0000 (15:44 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 6 Jan 2015 20:44:51 +0000 (15:44 -0500)
commitc6a38536f205e0723600d54bce3aaf05ec107161
tree9ed27cf87e9517222e7cafa154708e9602f9f7b5
parentb433d944ab6d308ea3f85c7537e64b99bc27bed5
re PR c++/64455 (A constexpr variable template can't be used with enable_if)

PR c++/64455
* pt.c (type_dependent_expression_p): Handle variable templates.
* constexpr.c (potential_constant_expression_1): Use it.

From-SVN: r219268
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp1y/var-templ21.C [new file with mode: 0644]