Debian Codegraph @

gcc/testsuite/g++.dg/template/template-id-3.C

raw
1 // PR c++/48261
2
3 typedef double (*gaddType)(double,double);
4 struct Foo2
5 {
6 static gaddType add;
7 };
8
9 template<typename T>
10 struct Something
11 {
12 void work()
13 {
14 double x=T::template add<double>(5.0,6.0); // { dg-error "add" }
15 }
16 };
17
18 int main()
19 {
20 Something<Foo2> s2;
21 s2.work();
22 }