This is the mail archive of the
mailing list for the GCC project.
egcs-1.0.3 bug w/ inline constructors
- To: egcs-bugs at cygnus dot com
- Subject: egcs-1.0.3 bug w/ inline constructors
- From: Olaf Lenzmann <lenzmann at bned dot com>
- Date: Thu, 20 Aug 1998 11:41:01 +0200
- Organization: BNeD GmbH
I'm running egcs 1.0.3 (it reports gcc version egcs-2.90.29 980515
on RedHat5.1 Linux. I came across the following problem when using
- Spuriously the linker will complain about missing constructors;
however these are inline
such that the linker should not see them at all.
- More seriously, the compiler seems to generate bogus code sometimes. I
a complex project, where there is a class A derived from class B; now B
an inline constructor that was included in the constructor call list of
When dynamically creating an instance of A, the memory mangement gets
and the program crashes; if B's constructor is made non-inline
everything works ok.
Stepping into A's constructor also showed that when using the inline
version of B::B()
the members that B::B() sets to zero contained random data.
If it can help you, I might send you the preprocessed file and the
assembler output of the
respective source with inline and non-inline versions.