aboutsummaryrefslogtreecommitdiff
path: root/gcc/objc
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2022-05-22 15:04:33 -0400
committerJason Merrill <jason@redhat.com>2022-05-25 11:06:36 -0400
commit6209009df65ff68482ef66951856f50cf362d990 (patch)
tree400d50b2f5a8debf3c6eecd1f3c9dbd063076a5e /gcc/objc
parent1b661f3f5e712c951e774b3b91fffe4dac734cc7 (diff)
downloadgcc-6209009df65ff68482ef66951856f50cf362d990.zip
gcc-6209009df65ff68482ef66951856f50cf362d990.tar.gz
gcc-6209009df65ff68482ef66951856f50cf362d990.tar.bz2
c++: strict constexpr and local vars
A change I was working on made constexpr_searcher.cc start to fail, and when I looked at it I wondered why it had been accepted before. This turned out to be because we try to be more flexible about constant-evaluation of static initializers, as allowed, but we were wrongly doing the same for non-static initializers as well. gcc/cp/ChangeLog: * constexpr.cc (maybe_constant_init_1): Only pass false for strict when initializing a variable of static duration. libstdc++-v3/ChangeLog: * testsuite/20_util/function_objects/constexpr_searcher.cc: Add constexpr. gcc/testsuite/ChangeLog: * g++.dg/cpp1y/constexpr-local4.C: New test.
Diffstat (limited to 'gcc/objc')
0 files changed, 0 insertions, 0 deletions