PR c++/65970 - constexpr infinite loop
[gcc.git] / gcc / c-family / c.opt
index 8c701523c3871ebd5c35ba1690bd0d1a9302804d..a5358ededb30119e3922fb99e44f16dd6f2b1590 100644 (file)
@@ -1174,6 +1174,10 @@ fconstexpr-depth=
 C++ ObjC++ Joined RejectNegative UInteger Var(max_constexpr_depth) Init(512)
 -fconstexpr-depth=<number>     Specify maximum constexpr recursion depth.
 
+fconstexpr-loop-limit=
+C++ ObjC++ Joined RejectNegative UInteger Var(constexpr_loop_limit) Init(262144)
+-fconstexpr-loop-limit=<number>        Specify maximum constexpr loop iteration count.
+
 fdebug-cpp
 C ObjC C++ ObjC++
 Emit debug annotations during preprocessing.