Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.other / conv7.C
blob7042e147ca5559c1925c520fe6c6323b61f1fe54
1 // { dg-do assemble  }
2 // { dg-options "-Wconversion" }
3 // 
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.
10 class foo
14 template<class T>
15 class bar
17 public:
18     operator const T&() const ;
19     operator T&() ;
24 template<class T, class Ref, class NodePtr, class ListPtr>
25 class iterator_template
27 public:
28     iterator_template();
29     Ref operator*() const;
33 struct IdlDeclarator
37 typedef bar< IdlDeclarator > IdlDeclarator_bar;
38 int
39 yyparse()
43   iterator_template<IdlDeclarator_bar,IdlDeclarator_bar&,foo*,foo*> declIter;
44   const IdlDeclarator& declarator = *declIter;
45   return 1;