Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
inh-ctor8.C
blob: 74c9496701b13dadbcf941429d735895644fe3ca [
file
] [
log
] [
blame
]
// { dg-do compile { target c++11 } }
struct
A
{
int
i
;
explicit
A
(
int
i
):
i
(
i
)
{}
};
struct
B
:
A
{
using
A
::
A
;
};
void
f
(
B
);
int
main
()
{
f
(
B
(
42
));
// OK
f
(
42
);
// { dg-error "could not convert" }
}