1 // { dg-do compile { target c++14 } } 2 // { dg-additional-options "-Wno-return-type" } 3 f(int i)4 constexpr int f (int i) 5 { 6 } 7 8 constexpr int i = f(42); // { dg-error "flows off the end|in .constexpr. expansion of " } 9