blob: fd952f6fbcf8a7ed023d795fbda7743b31e13a6d [file] [log] [blame]
// PR c++/85731
// { dg-do compile { target c++11 } }
template <typename T>
struct Outer {
struct Inner;
template <int I> static void f();
};
template <typename T>
struct Outer<T>::Inner {
decltype(Outer<T>::f<42>()) f();
};
int main() { Outer<int>::Inner().f(); }