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