PR c++/85731 - wrong error with qualified-id in template.
[official-gcc.git] / gcc / testsuite / g++.dg / template / qualified-id7.C
blobfd952f6fbcf8a7ed023d795fbda7743b31e13a6d
1 // PR c++/85731
2 // { dg-do compile { target c++11 } }
4     template <typename T>
5     struct Outer {
6         struct Inner;
7         template <int I> static void f();
8     };
10     template <typename T>
11     struct Outer<T>::Inner {
12         decltype(Outer<T>::f<42>()) f();
13     };
15     int main() { Outer<int>::Inner().f(); }