Is this a bug in egcs or is it egcs better adherence to the standard.

Alexandre Oliva oliva@dcc.unicamp.br
Wed Sep 2 18:33:00 GMT 1998


Dan Glastonbury <Dan.Glastonbury@adelaide.maptek.com.au> writes:

> dan@gauss[~/compiler-bug]> g++ -DPLATFORM_SGI_IRIX -DOS_MAJOR_6 -DOS_MINOR_2 
> -I/maptek/people/dan/carmen/include -I/maptek/people/dan/carmen -c main.C
> /maptek/people/dan/carmen/include/geometry_new/Point.H: In function `void 
> f()':
> /maptek/people/dan/carmen/include/geometry_new/Point.H:364: 
> `geoC_PointR::operator geoS_Point() const' is from private base class
> main.C:10: within this context

I may have not looked close enough, but I can't seem to find any case
of non-public inheritance in your source code, so it seems to me that
you've been bitten by a known problem related with access control in
the presence of virtual inheritance. :-(

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