Re: Cannot catch luabind:error with gcc 4.8 and C++11

Kai Bernhard <[email protected]> Sun, 21 Jul 2013 22:46:24 +0200
Newsgroups gmane.comp.lang.lua.bind.user
Message-ID <[email protected]>
Hi Benjamin,

I ran into the same problem. It looks like it is enough to compile the 
executable with -std=c++98 to make it work, lua and luabind libraries 
can be compiled with -std=c++11. After I had seen this, I looked at the 
assembler code generated from luabind_error.cpp in C++11 vs C++98 mode.
There are a few blocks of code in C++98 mode which seem to be 
suspiciously missing in C++11 mode, each of them including the lines
     call __Unwind_Resume
and
     .section .gcc_except_table,"w"

So this looks indeed like a problem with gcc's code generation (I tested 
with 4.8.1). Did you find any other information regarding this or 
contact the gcc devs? I did not see any ticket in their bug tracker that 
rang a bell.

Regards,
Kai

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk