Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
Wnarrowing8.C
blob: 39c924c9c6cf1d7ed52989ddf0a4eec3bbb434b9 [
file
] [
log
] [
blame
]
// PR c++/57891
// { dg-do compile { target c++11 } }
struct
X
{
constexpr
operator
int
()
{
return
1000
;
}
};
template
<
signed
char
>
struct
C
{};
C
<
X
{}>
c
;
// { dg-error "narrowing conversion" }