public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* egcs-1.0.3 bug w/ inline constructors
@ 1998-08-20  2:41 Olaf Lenzmann
  0 siblings, 0 replies; only message in thread
From: Olaf Lenzmann @ 1998-08-20  2:41 UTC (permalink / raw)
  To: egcs-bugs

Hi there!

I'm running egcs 1.0.3 (it reports gcc version egcs-2.90.29 980515
(egcs-1.0.3 release))
on RedHat5.1 Linux. I came across the following problem when using
inline constructors:

- 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
have quite
a complex project, where there is a class A derived from class B; now B
originally had
an inline constructor that was included in the constructor call list of
A's constructor.
When dynamically creating an instance of A, the memory mangement gets
corrupted
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.

Regards,

Olaf Lenzmann



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-08-20  2:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-08-20  2:41 egcs-1.0.3 bug w/ inline constructors Olaf Lenzmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).