]> gcc.gnu.org Git - gcc.git/commit
re PR c++/69688 (-Wsign-compare causes bogus error: size of array ‘uc_code’ is not...
authorMarek Polacek <polacek@redhat.com>
Mon, 8 Feb 2016 15:40:33 +0000 (15:40 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Mon, 8 Feb 2016 15:40:33 +0000 (15:40 +0000)
commiteba9e839de0a585e55a92b4815e78a781ce32abb
treee362aee6c662fd0043e5bdca1a8c68c79dad4c73
parent2158532f314617f555389157fb46b86c5ef935b3
re PR c++/69688 (-Wsign-compare causes bogus error: size of array ‘uc_code’ is not an integral constant-expression)

PR c++/69688
* constexpr.c (clear_cv_and_fold_caches): Renamed from clear_cv_cache.
Call clear_fold_cache.
* cp-tree.h: Adjust declaration.
* decl.c (finish_enum_value_list): Call clear_cv_and_fold_caches
rather than clear_cv_cache and clear_fold_cache.
* typeck2.c (store_init_value): Call clear_cv_and_fold_caches.

* g++.dg/init/const12.C: New test.

From-SVN: r233220
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/typeck2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/init/const12.C [new file with mode: 0644]
This page took 0.066671 seconds and 5 git commands to generate.