PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / template / template-id-3.C
blobe0753abd9e8efff8813e92f77b5b3d198bcc40e7
1 // PR c++/48261
3 typedef double (*gaddType)(double,double);
4 struct Foo2
6   static gaddType add;
7 };
9 template<typename T>
10 struct Something
12   void work()
13   {
14     double x=T::template add<double>(5.0,6.0); // { dg-error "add" }
15   }
18 int main()
20   Something<Foo2> s2;
21   s2.work();