diff options
author | Marek Polacek <polacek@redhat.com> | 2018-10-29 19:40:18 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2018-10-29 19:40:18 +0000 |
commit | a385474c79d28d89861d25720715ed361e912b1a (patch) | |
tree | e4518fd6a8a63bf04eaf36911119522677b959f2 /gcc/tree-ssa-loop-niter.c | |
parent | a4e30bef6446858bba7222afcf233c2d92e5c774 (diff) | |
download | gcc-a385474c79d28d89861d25720715ed361e912b1a.zip gcc-a385474c79d28d89861d25720715ed361e912b1a.tar.gz gcc-a385474c79d28d89861d25720715ed361e912b1a.tar.bz2 |
PR c++/87594 - constexpr rejects-valid with range-based for.
* constexpr.c (potential_constant_expression_1): If the condition
can't be evaluated, return true.
* g++.dg/cpp1y/constexpr-loop8.C: New test.
From-SVN: r265600
Diffstat (limited to 'gcc/tree-ssa-loop-niter.c')
0 files changed, 0 insertions, 0 deletions