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

Tom Browder tom.browder@gmail.com
Wed Jun 25 23:19:00 GMT 2008


On Wed, Jun 25, 2008 at 12:09 PM, Maik Beckmann
<beckmann.maik@googlemail.com> wrote:
> Hello,
>
> This code
...
> compiled with
>  g++ -O3 test.cpp -o test
> segaults on my x86-64 linux box.

It works OK for me.

> I compiled it with -g
>  g++ -O3 -g test.cpp -o test

Ditto.

Using g++-4.3.1.  What are you using?

-Tom

Tom Browder
Niceville, Florida
USA



More information about the Gcc-help mailing list