PR c++/65970 - constexpr infinite loop
authorJason Merrill <jason@redhat.com>
Mon, 25 Jul 2016 18:32:13 +0000 (14:32 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 25 Jul 2016 18:32:13 +0000 (14:32 -0400)
commit5ec2cd9f666a8d26ce62ee7ef6383948fafb1b35
tree4aaebb6731b4983f7f2b22d47f9f80c7612eae01
parentfd2bfee51ee9b63869652ed0812df1d34aaca093
PR c++/65970 - constexpr infinite loop

gcc/c-family/
* c.opt (fconstexpr-loop-limit): New.
gcc/cp/
* constexpr.c (cxx_eval_loop_expr): Count iterations.
* cp-gimplify.c (genericize_cp_loop): Use start_locus even for
infinite loops.

From-SVN: r238730
gcc/c-family/ChangeLog
gcc/c-family/c.opt
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/cp/cp-gimplify.c
gcc/doc/invoke.texi
gcc/testsuite/g++.dg/cpp1y/constexpr-loop6.C [new file with mode: 0644]