Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist-template3.C
blob: b65a8473a09a2047aba82439a47ce49a5cf54c28 [
file
] [
log
] [
blame
]
// PR c++/97899
// { dg-do compile { target c++11 } }
template
<
typename
T
=
int
>
int
fn
()
{
return
1
;
}
template
<
typename
T
>
void
bar
()
{
const
int
i
=
int
{
fn
()};
}