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