[gcc-4.3.1][c++] weird segfault with -O3 in constructor of a global object

Maik Beckmann beckmann.maik@googlemail.com
Wed Jun 25 23:54:00 GMT 2008


Am Mittwoch 25 Juni 2008 20:47:49 schrieb John Love-Jensen:
> Hi Maik,
>
> As a data point...
>
> Worked just fine on my x86_64 system (as a 64-bit executable).
>
> Compiled:
> g++ -O3 -m64 -g test.cpp -o test
>
> GCC 4.0.1
>
> Also worked just fine when compiled as a 32-bit executable.
>
> Sincerely,
> --Eljay

GCC 3.4 and 4.2 work fine.  However, I will build gcc vanilla and report what 
the results are.


Thanks,
 -- Maik



More information about the Gcc-help mailing list