2 // { dg-do compile { target c++14 } }
4 constexpr int f(int i) {
7 int j = 123; // { dg-message "note: declared here" }
10 return *p; // { dg-error "accessing object outside its lifetime" }
13 constexpr int i = f(0); // { dg-message "in .constexpr. expansion" }