Recursive template compiling problem?
Alexandre Oliva
oliva@dcc.unicamp.br
Thu Dec 3 14:57:00 GMT 1998
On Oct 16, 1998, Konstantin Morshnev <moko@design.ru> wrote:
> template <class item> class list{ public:
> static void show(item *l){ if (l) for(item *p=l;*p;p++) display(*p); }
> static void display(char **value){ list<char *>::show(value); }
> static void display(char *value){ if (value) printf(value); } };
> void main(){ char *a="Hello\n"; char *b[]={a, NULL};
> char **c[]={b, NULL}; list<char **>::show(c); }
Thanks for your bug report. This problem is fixed in egcs 1.1
--
Alexandre Oliva http://www.dcc.unicamp.br/~oliva aoliva@{acm.org}
oliva@{dcc.unicamp.br,gnu.org,egcs.cygnus.com,samba.org}
Universidade Estadual de Campinas, SP, Brasil
More information about the Gcc-bugs
mailing list