[comp.lang.c++.moderated] Incomplete type problem

Alexandre Oliva oliva@dcc.unicamp.br
Fri Oct 17 20:37:00 GMT 1997


Hi!

I saw this in comp.lang.c++.moderated, and was about to say that the
current snapshot of egcs would compile it if he'd used typename C::B
instead of just C::B, when I decided to try it.  It produced an
internal compiler error in line 7 :-(

It seems that lookup_field should not look at D's base class until it
is defined...  Does anyone have a simple fix?

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