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