Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist41.C
blob: 7ae4928f2bd2b4fde662c7367627c014e6fc9835 [
file
] [
log
] [
blame
]
// PR c++/44703
// { dg-do compile { target c++11 } }
#include
<initializer_list>
typedef
std
::
initializer_list
<int>
type
;
void
f
(
type
)
{}
int
main
()
{
// error: could not convert '{1, 2, 3}' to 'type'
f
({
1
,
2
,
3
})
;
}