// Build don't link: // // Copyright (C) 2001 Free Software Foundation, Inc. // Contributed by Nathan Sidwell 5 May 2001 // Bug 2726. We ICE'd trying to say something about possibly confusing // conversion overload resolution. class foo { }; template class bar { public: operator const T&() const ; operator T&() ; }; template class iterator_template { public: iterator_template(); Ref operator*() const; }; struct IdlDeclarator { }; typedef bar< IdlDeclarator > IdlDeclarator_bar; int yyparse() { iterator_template declIter; const IdlDeclarator& declarator = *declIter; // WARNING - choosing return 1; }