1 // PR c++/65970
2 // { dg-do compile { target c++14 } }
3 // { dg-options -fconstexpr-loop-limit=5 }
4 
foo()5 constexpr int foo() {
6   while (true)			// { dg-error "-fconstexpr-loop-limit" }
7     ;
8   return 0;
9 }
10 
11 constexpr int i = foo();	// { dg-message "" }
12