Re: Cannot catch luabind:error with gcc 4.8 and C++11
Benjamin Kloster <[email protected]> Mon, 22 Jul 2013 07:33:15 +0000 (UTC)
| Newsgroups | gmane.comp.lang.lua.bind.user |
|---|---|
| Message-ID | <[email protected]> |
Kai Bernhard <kai.bernhard <at> imail.de> writes: > > 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 Hi Kai, I haven't contacted the gcc developers yet as I wanted to see whether someone else has this problem and maybe pinpoint the error in either luabind or gcc. You seem to have investigated this much further than I did. Would you be willing to file a bug report with gcc? Best Regards, Ben ------------------------------------------------------------------------------ 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