This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Static member template bug?
>>>>> "Alexandre" == Alexandre Oliva <oliva@dcc.unicamp.br> writes:
Alexandre> 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.
Alexandre> Unfortunately, it isn't. I've just tested it with
Alexandre> egcs-980129 on Solaris 2.[56]; it won't work, same
Alexandre> error :-(
Well, the good news is that the patches I submitted aren't in that
snapshot, so they still might fix the problem. Would you be so kind
as to remember this mail, and try it again in the next snapshot?
Thank you!
Alexandre> -- Alexandre Oliva mailto:oliva@dcc.unicamp.br
Alexandre> mailto:aoliva@acm.org http://www.dcc.unicamp.br/~oliva
Alexandre> Universidade Estadual de Campinas, SP, Brasil
--
Mark Mitchell mmitchell@usa.net
Stanford University http://www.stanford.edu