2 // { dg-options "-Wconversion" }
4 // Copyright (C) 2001 Free Software Foundation, Inc.
5 // Contributed by Nathan Sidwell 5 May 2001 <nathan@codesourcery.com>
7 // Bug 2726. We ICE'd trying to say something about possibly confusing
8 // conversion overload resolution.
18 operator const T&() const ;
24 template<class T, class Ref, class NodePtr, class ListPtr>
25 class iterator_template
29 Ref operator*() const;
37 typedef bar< IdlDeclarator > IdlDeclarator_bar;
43 iterator_template<IdlDeclarator_bar,IdlDeclarator_bar&,foo*,foo*> declIter;
44 const IdlDeclarator& declarator = *declIter;