PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / template / canon-type-9.C
blobc15f93ad7536af876556a3715106381cd4900a62
1 // Contributed by Dodji Seketeli <dodji@redhat.com>
2 // { dg-do compile { target c++11 } }
4 struct F { F(int) {}};
6 template<class T, T* u>
7 struct S
9   decltype(u) foo(T);
12 template<class T, T *u>
13 decltype(u) S<T, u>::foo(T)
15   T t;
16   return t;