The same problem occurs when ragel is compiled with g++ 3.4.4 (cygwin environment), so it is likely not to depend on a specific g++ version.