[Bug c++/64455] A constexpr variable template can't be used with enable_if
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jan 6 20:45:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64455
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Tue Jan 6 20:44:51 2015
New Revision: 219268
URL: https://gcc.gnu.org/viewcvs?rev=219268&root=gcc&view=rev
Log:
PR c++/64455
* pt.c (type_dependent_expression_p): Handle variable templates.
* constexpr.c (potential_constant_expression_1): Use it.
Added:
trunk/gcc/testsuite/g++.dg/cpp1y/var-templ21.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/constexpr.c
trunk/gcc/cp/pt.c
More information about the Gcc-bugs
mailing list