Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
access01.C
blob: 3a7cee4156add525e286dbb10f01aad940b79acc [
file
] [
log
] [
blame
]
// PR c++/49042
// { dg-do compile { target c++11 } }
template
<
class
T
>
class
A
{
T p
;
public
:
template
<
class
U
>
auto
f
()
->
decltype
(+
p
)
{
return
p
;
}
};
int
main
()
{
A
<int>
().
f
<int>
();
}