// PR c++/85731 // { dg-do compile { target c++11 } } template struct Outer { struct Inner; template static void f(); }; template struct Outer::Inner { decltype(Outer::f<42>()) f(); }; int main() { Outer::Inner().f(); }