PR c++/65970 - constexpr infinite loop
[gcc.git] / gcc / cp / ChangeLog
index a540d31133ba977472dd75bbc960297f747bf32c..5854205b3b7582f255e24c6aa72e7ecf785b5c54 100644 (file)
@@ -1,5 +1,10 @@
 2016-07-25  Jason Merrill  <jason@redhat.com>
 
+       PR c++/65970
+       * constexpr.c (cxx_eval_loop_expr): Count iterations.
+       * cp-gimplify.c (genericize_cp_loop): Use start_locus even for
+       infinite loops.
+
        PR c++/71972
        * constexpr.c (cxx_eval_array_reference): Handle looking for the
        value of an element we're currently modifying.