http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50239
Bug #: 50239 Summary: compiled program segfault when -O0 is used to compile Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: ev...@mail.ru Original thread: https://bugs.launchpad.net/ubuntu/+source/gcc-defaults/+bug/591819 When I compile my code, if I compile it -O2, it compiles and runs fine. if I compile it with -O0, it segfaults while rendering text with FTGL. I've made no changes to anything in between compiles. Same FTGL code works fine in win32 (vs2010).