Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
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" }