]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/g++.old-deja/g++.other/conv7.C
71ec204254855af3ec0087469f8d5d1c647173d4
[gcc.git] / gcc / testsuite / g++.old-deja / g++.other / conv7.C
1 // { dg-do assemble }
2 //
3 // Copyright (C) 2001 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 5 May 2001 <nathan@codesourcery.com>
5
6 // Bug 2726. We ICE'd trying to say something about possibly confusing
7 // conversion overload resolution.
8
9 class foo
10 {
11 };
12
13 template<class T>
14 class bar
15 {
16 public:
17 operator const T&() const ;
18 operator T&() ;
19
20 };
21
22
23 template<class T, class Ref, class NodePtr, class ListPtr>
24 class iterator_template
25 {
26 public:
27 iterator_template();
28 Ref operator*() const;
29
30 };
31
32 struct IdlDeclarator
33 {
34 };
35
36 typedef bar< IdlDeclarator > IdlDeclarator_bar;
37 int
38 yyparse()
39
40 {
41
42 iterator_template<IdlDeclarator_bar,IdlDeclarator_bar&,foo*,foo*> declIter;
43 const IdlDeclarator& declarator = *declIter;
44 return 1;
45 }
This page took 0.037209 seconds and 4 git commands to generate.