// Contributed by Dodji Seketeli <dseketel@redhat.com>// Origin: PR c++/36407 // { dg-do compile }structA{A(constA&);};structB{operatorA&();};voidfoo(constB&b){constAa=b;// { dg-error "conversion from 'const B' to non-scalar type 'const A' requested" }}