Seems to work with Qt 4.5.1 and GCC 4.4:
(I did have to add #include <iostream.h> before it'd compile, but it didn't 
segfault there either)

jonat...@jonathan-desktop:~/Documents/sauce/testcase$ make
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB 
-DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore 
-I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o testcase.o testcase.cpp
testcase.cpp:7: warning: unused parameter ‘argc’
testcase.cpp:7: warning: unused parameter ‘argv’
/usr/include/qt4/QtCore/qmap.h: In function ‘int main(int, char**)’:
/usr/include/qt4/QtCore/qmap.h:704: warning: dereferencing pointer ‘pretmp.136’ 
does break strict-aliasing rules
cc1plus: note: initialized from here
g++ -Wl,-O1 -o testcase\ testcase testcase.o    -L/usr/lib -lQtGui -lQtCore 
-lpthread
jonat...@jonathan-desktop:~/Documents/sauce/testcase$

** Changed in: qt4-x11 (Ubuntu)
       Status: New => Fix Released

-- 
testcase.cpp: internal compiler error: Segmentation fault.
https://bugs.launchpad.net/bugs/328299
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to