blob: 24d2aab7615a9b7321dec0b8664e3dde6d8ba404 [file] [log] [blame]
// PR c++/53421
template< class T >
struct Y : T
{ } __attribute__((__may_alias__));
struct X
{
operator Y<X>& () { return *static_cast< Y<X>* >(this); }
};
int main()
{
&X::operator Y<X>&;
}