☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
template
/
non-dependent22.C
☽
☼
gcc/testsuite/g++.dg/template/non-dependent22.C
code
plain
raw
1
// PR c++/104565
2
// { dg-do compile { target c++11 } }
3
4
struct apa {
5
constexpr int n() const { return 3; }
6
};
7
8
template<class>
9
int f() {
10
apa foo;
11
return int{foo.n()}; // no matching function for call to 'apa::n(apa*)'
12
}