Debian Codegraph @

gcc/testsuite/g++.dg/template/canon-type-12.C

raw
1 // { dg-do compile { target c++11 } }
2
3 template<class T, T t = (T)0>
4 struct S
5 {
6 void
7 foo(decltype(t) = t);
8 };
9
10 template<class T, T t>
11 void
12 S<T, t>::foo(decltype(t))
13 {
14 }
15
16 void
17 bar()
18 {
19 S<int> s;
20 s.foo();
21 }