1 // { dg-do compile { target c++11 } } 2 3 struct A 4 { 5 int i; 6 ~A(); 7 }; 8 9 constexpr int i = A().i; // { dg-error "non-literal" } 10