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" }
}