// { dg-do compile } // Copyright (C) 2003 Free Software Foundation, Inc. // Contributed by Nathan Sidwell 21 Mar 2003 // PR 9898, DR 322. Conversion to reference type. template struct Ref {}; template struct Val {}; struct Wrapper { template operator Ref & (); template operator Val (); }; void Foo (Wrapper l) { static_cast &> (l); static_cast const &> (l); static_cast > (l); static_cast const &> (l); static_cast > (l); }