This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: [gcc-4.3.1][c++] weird segfault with -O3 in constructor of a global object
- From: Maik Beckmann <beckmann dot maik at googlemail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 26 Jun 2008 01:53:29 +0200
- Subject: Re: [gcc-4.3.1][c++] weird segfault with -O3 in constructor of a global object
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