// PR c++/118249 // { dg-do compile { target c++11 } } template void f() { } template struct array { constexpr int size() const { return N; } }; extern array<10>& outer; struct C { array<10> inner; void g() { f(); // OK f(); // was error: use of 'this' in a constant expression } };