This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/54424] New: Compiler crash with -std=gnu++0x


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54424

             Bug #: 54424
           Summary: Compiler crash with -std=gnu++0x
    Classification: Unclassified
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: nadia.cavallero@gmail.com


Setting up a MinGW/Qt 4.8.2 only environment...
In file included from ..\..\..\..\Qt\4.8.2\include/QtCore/qtconcurrentrun.h:1,
                 from ..\..\..\..\Qt\4.8.2\include/QtCore/QtCore:59,
                 from ..\..\..\..\Qt\4.8.2\include\QtGui/QtGui:3,
                 from
C:\L\ecs-traffico\ecs-traffico\ecst-configurator\configuratormainwin.cpp:9:
..\..\..\..\Qt\4.8.2\include/QtCore/../../src/corelib/concurrent/qtconcurrentrun.h:113:
internal compiler error: Segmentation fault


  the exact version of GCC: gcc version 4.4.0 (GCC)
  the system type: Windows 7
  the exact command line passed to the gcc program triggering the bug :
g++ -c -std=gnu++0x -Wno-write-strings -g -frtti -fexceptions -mthreads -Wall
-DQT_LARGEFILE_SUPPORT -DDEBUG_MEM=1 -DVS_ENABLE_DEBUG -DVS_WINDOWS
-DDEBUG_MEM=1 -DVS_ENABLE_DEBUG -DVS_WINDOWS -DRS_NO_FPARSER -DRS_NO_QCADCMD
-DQT_DLL -DQT_QT3SUPPORT_LIB -DQT3_SUPPORT -DQT_XML_LIB -DQT_GUI_LIB
-DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT
-DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -I"..\..\..\..\Qt\4.8.2\include\QtCore"
-I"..\..\..\..\Qt\4.8.2\include\QtGui" -I"..\..\..\..\Qt\4.8.2\include\QtXml"
-I"..\..\..\..\Qt\4.8.2\include\Qt3Support" -I"..\..\..\..\Qt\4.8.2\include"
-I".\corelib\qt" -I".\ecst-clib" -I".\qcadlib\engine" -I".\qcadlib\debug"
-I".\qcadlib\math" -I".\qcadlib\gui" -I".\qcadlib\qcadcmd"
-I".\qcadlib\information" -I".\qcadlib\modification" -I".\qcadlib\filters"
-I".\qcadlib\fileio" -I".\qcadlib\actions" -I".\qcadlib\creation"
-I"..\..\..\..\Qt\4.8.2\include\ActiveQt" -I".moc" -I".ui"
-I"..\..\..\..\Qt\4.8.2\mkspecs\win32-g++" %1

Section code of error:

template <typename Functor, typename Arg1>
auto run(Functor functor, const Arg1 &arg1)
    -> typename QtPrivate::QEnableIf<!QtPrivate::HasResultType<Functor>::Value,
QFuture<decltype(functor(arg1))> >::Type
{
    typedef decltype(functor(arg1)) result_type;
    return (new StoredFunctorCall1<result_type, Functor, Arg1>(functor,
arg1))->start();
}

only with option "-std=gnu++0x"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]