Debian Codegraph @

gcc/testsuite/g++.dg/template/non-dependent1.C

raw
1 //PR c++/8222
2 // Origin: [email protected] and [email protected]
3
4 // { dg-do run }
5
6 struct Foo
7 {
8 template <class>
9 void func() {}
10 };
11 template <class>
12 void Bar(Foo* p)
13 {
14 p->func<int>();
15 }
16
17 int main()
18 {
19 Foo c;
20 Bar<int>(&c);
21 }