https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87594
--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Author: mpolacek Date: Mon Oct 29 19:40:18 2018 New Revision: 265600 URL: https://gcc.gnu.org/viewcvs?rev=265600&root=gcc&view=rev Log: 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. Added: trunk/gcc/testsuite/g++.dg/cpp1y/constexpr-loop8.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/constexpr.c trunk/gcc/testsuite/ChangeLog