Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
auto5.C
blob: 8ed66d1ea36aa6bd40d60f747dfcf81d1f864da2 [
file
] [
log
] [
blame
]
// Testcase for non-dependent auto in templates
// { dg-do compile { target c++11 } }
struct
A
{
template
<class>
void
f
();
}
a
;
template
<
class
T
>
void
g
()
{
auto
aa
=
a
;
aa
.
f
<int>
();
auto
p
=
new
auto
(
a
);
p
->
f
<int>
();
}
int
main
()
{
g
<double>
();
}