Segmentation faulty code from egcs-1998-05-25

Alexandre Oliva oliva@dcc.unicamp.br
Sat May 30 12:59:00 GMT 1998


Petter Urkedal <petter@matfys.lth.se> writes:

> The following code compiles to an exectable which gives a segmentation
> fault.

> struct foo : public base, virtual public v_base {
[snip]
>     fp = new foo;   // This line is "set_fault.cc:19"

There was a bug that caused new to be asked to allocate a smaller
amount of memory than needed for a class that involved virtual
inheritance.  I patch that alledgedly fixes this problem was commited
yesterday.

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