Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.dg
/
conversion
/
op5.C
blob: 0aad9259bf9dd0fa8fe95d4b9954d230961b4c64 [
file
] [
log
] [
blame
]
// Contributed by Dodji Seketeli <dseketel@redhat.com>
// Origin: PR c++/36407
// { dg-do compile }
struct
A
{
A
(
const
A
&);
};
struct
B
{
operator
A
&();
};
void
foo
(
const
B
&
b
)
{
const
A a
=
b
;
// { dg-error "const B" }
}