Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
decltype79.C
blob: 50c292a1958abb48fdcdb06aaf90cc3e91761723 [
file
] [
log
] [
blame
]
// PR c++/79504
// { dg-do compile { target c++11 } }
struct
A
{
void
f
()
&
{}
template
<
typename
...
Args
>
auto
f
(
Args
&&...
args
)
&&
->
decltype
(
this
->
f
(
args
...))
{
return
this
->
f
(
args
...);
}
};
int
main
(){
A p
;
p
.
f
();
A
{}.
f
();
}