Summary: | [6 Regression] -Wsign-compare causes bogus error: size of array ‘uc_code’ is not an integral constant-expression | ||
---|---|---|---|
Product: | gcc | Reporter: | Jonathan Wakely <redi> |
Component: | c++ | Assignee: | Marek Polacek <mpolacek> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | daniel.kruegler, jason, rguenth, webrown.cpp |
Priority: | P1 | Keywords: | rejects-valid |
Version: | 6.0 | ||
Target Milestone: | 6.0 | ||
Host: | Target: | ||
Build: | Known to work: | ||
Known to fail: | Last reconfirmed: | 2016-02-05 00:00:00 |
Description
Jonathan Wakely
2016-02-05 11:18:05 UTC
Confirmed. Mine. Author: mpolacek Date: Mon Feb 8 15:40:33 2016 New Revision: 233220 URL: https://gcc.gnu.org/viewcvs?rev=233220&root=gcc&view=rev Log: 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. Added: trunk/gcc/testsuite/g++.dg/init/const12.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/constexpr.c trunk/gcc/cp/cp-tree.h trunk/gcc/cp/decl.c trunk/gcc/cp/typeck2.c trunk/gcc/testsuite/ChangeLog Fixed. |