Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
non-dependent22.C
blob: 83a6a13f15b7054ab6e1bba7bbc20d31383059f8 [
file
] [
log
] [
blame
]
// PR c++/104565
// { dg-do compile { target c++11 } }
struct
apa
{
constexpr
int
n
()
const
{
return
3
;
}
};
template
<class>
int
f
()
{
apa foo
;
return
int
{
foo
.
n
()};
// no matching function for call to 'apa::n(apa*)'
}