Help: C++ virtual tables not created

Klaus Kaempf kkaempf@progis.de
Sat Dec 20 11:46:00 GMT 1997


This one really bugs me. EGCS (and gcc 2.8.0) on openVMS/Alpha fail
to generate virtual tables in the assembler output. When checking iostream.obj
from libio with 'nm --demangle', I get:
                 U istream::ios virtual table
                 U ostream::ios virtual table
                 U iostream::ios virtual table

However, if I compile a sunos-pre(!)compiled version of iostream.cc on
openVMS, I get:
0000000000009638 D istream::ios virtual table
0000000000009648 D ostream::ios virtual table
0000000000009628 D iostream::ios virtual table

So to me, this looks like a bug in cpp and not in cc1plus ?!
Question is, what makes the c++-compiler generate virtual tables. I can't
get a clue from 'diff'ing the preprocessor outputs.

Klaus
-- 
proGIS Software                 E-Mail: kkaempf@progis.de
Dipl.-Inform. Klaus K"ampf      Fax:    0241-47067-29
Jakobstr. 117                   Voice:  0241-47067-11
D-52064 Aachen                  WWW:	http://www.progis.de




More information about the Gcc mailing list