bug in template template parameters?

Alexandre Oliva oliva@dcc.unicamp.br
Mon Mar 9 15:33:00 GMT 1998


Peter Schmid writes:

> template<class T, template<class U> C = List>
                                     ^ the `class' keyword is missing

If you add, the latest development snapshot will parse this
successfully, then it will complain:

test.cc:9: invalid use of undefined type `class List<int>'
test.cc:9: confused by earlier errors, bailing out

-- 
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