Static member template bug?

Alexandre Oliva oliva@dcc.unicamp.br
Sun Feb 1 23:32:00 GMT 1998


Mark Mitchell writes:

>>>>>> "William" == William S Lear <rael@zopyra.com> writes:

William> struct foo { template <typename T, int N> static T*
William> array_end(T(&array)[N]) { return &array[N]; } };

William> main(int ac, char* av[]) { int i[] = {1,2,3,4,5,6,7};
William> int* e = foo::array_end(i); }

> This might well be fixed in the latest bits.

Unfortunately, it isn't.  I've just tested it with egcs-980129 on
Solaris 2.[56]; it won't work, same error :-(

-- 
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil



More information about the Gcc-bugs mailing list