aboutsummaryrefslogtreecommitdiff
path: root/libgomp/loop.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2023-02-06 15:08:17 -0800
committerJason Merrill <jason@redhat.com>2023-05-10 11:09:56 -0400
commit8d46516a61a83d24ba89086071f65a194d82ce4e (patch)
tree57f0d3898eb405b45f999ffe7e9194c58afeae66 /libgomp/loop.c
parent688fdde2f18e3318ef7e9889fdb9b239b905dfc7 (diff)
downloadgcc-8d46516a61a83d24ba89086071f65a194d82ce4e.zip
gcc-8d46516a61a83d24ba89086071f65a194d82ce4e.tar.gz
gcc-8d46516a61a83d24ba89086071f65a194d82ce4e.tar.bz2
c++: be stricter about constinit [CWG2543]
DR 2543 clarifies that constinit variables should follow the language, and diagnose non-constant initializers (according to [expr.const]) even if they can actually initialize the variables statically. DR 2543 gcc/cp/ChangeLog: * constexpr.cc (cxx_eval_outermost_constant_expr): Preserve TARGET_EXPR flags. (potential_constant_expression_1): Check TARGET_EXPR_ELIDING_P. * typeck2.cc (store_init_value): Diagnose constinit sooner. gcc/testsuite/ChangeLog: * g++.dg/DRs/dr2543.C: New test.
Diffstat (limited to 'libgomp/loop.c')
0 files changed, 0 insertions, 0 deletions