re PR c++/68586 (Enum template parameter wrongly rejected)
authorMarek Polacek <polacek@redhat.com>
Tue, 19 Jan 2016 14:02:40 +0000 (14:02 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 19 Jan 2016 14:02:40 +0000 (14:02 +0000)
commit1e2970064a996338c20f55b4b900ac678d0ceb94
treedecf75e7e87bfbaae21783d477ba29dfa48b91bb
parentc8012fbce973bebc5cf2a9905ebfa9fbaec1afa0
re PR c++/68586 (Enum template parameter wrongly rejected)

PR c++/68586
* constexpr.c (clear_cv_cache): New.
* cp-gimplify.c (clear_fold_cache): New.
* cp-tree.h (clear_cv_cache, clear_fold_cache): Declare.
* decl.c (finish_enum_value_list): Call them.

* g++.dg/cpp0x/enum30.C: New test.

From-SVN: r232562
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/cp/cp-gimplify.c
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/enum30.C [new file with mode: 0644]