[ghemical-devel] g++-3.2 bug report? more evidence found

Michael Banck mbanck@gmx.net
Fri, 21 Mar 2003 11:01:39 +0100


On Tue, Mar 18, 2003 at 11:03:20AM +0200, Tommi Hassinen wrote:
> The patch makes "File/New" and "File/Open" operations work again (after
> replacing about a dozen faulty dynamic_cast<>() operations!!!) but since
> it does not remove ALL dynamic_cast's the program still crashes in many
> other operations (including any mouse operations, please just look at
> mtools.cpp and count how many dynamic_casts there still are left!)  :(

Yeah, I just tried that out :(

> So, replacing dynamic_casts is sure possible as you can see, but it takes
> a lot of work (perhaps that's why the statement exists in C++ in the first
> place). So in my opinion it doesn't make any sense to go forward this way,
> and finally replace every dynamic_cast<>() statement.

probably, yes.

> Instead, I would be ready to send a bug report to g++ developers, after
> Michael has tested the new g++-3.3 packages he mentioned earlier.

I tried to do this a while back (using debians gcc-snapshot package,
which contains latest g++-CVS), but got loads of unresolved symbols.
I'll try a more stripped-down build soon (probably no time today, and
I'll be off skiing for the weekend, sorry)

> However, I know that a preferred bug report would only contain a
> single small example program that demonstrates the problem, not a big
> graphical app with depencencies to zillions of libraries. I'm afraid
> that such a bug report might be just ignored.
> 
> So, any ideas how to make a tricky bug report like this one?

Not at the moment, no. Sorry.

Michael