Debian Codegraph @

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

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 }