gcc 4.4 vs gcc 4.5 - a heads up

Nigel Atkinson <[email protected]> Tue, 21 Jun 2011 23:23:28 +1000
Newsgroups gmane.comp.lang.lua.bind.user
Message-ID <1308662611.5905.11.camel@ephebe>
I've just tracked down an annoying problem that arises with moving from
gcc 4.4 to gcc 4.5 - which might happen on Linux if you upgrade your
distribution.

The problem boiled down to a luabind lib compiled with 4.4 and my
program with 4.5, which caused a subtle bug in the dynamic casting with
some classes looking like their base class to Lua.  Not a bug with
luabind per se, but something to watch out for.

The solution was to re-compile luabind with gcc 4.5.  A fact I found
when adding cout's to luabind to see how the cast graph and cache
worked.

If anyone is interested, I have a fairly small program that exhibits the
problem.

Nigel Atkinson


------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev