Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
inherit
/
virtual2.C
blob: 9769d4ab730c13c6ddc1113eff2047f1711f023c [
file
] [
log
] [
blame
]
//PR c++/29022
struct
A
{
operator
int
();
};
struct
B
:
virtual
A
,
A
<
0
>
{};
// { dg-error "token" }
int
foo
(
B
&
b
)
{
return
b
;
// { dg-error "cannot convert" }
}