From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1741 invoked by alias); 28 Sep 2010 18:13:28 -0000 Received: (qmail 1727 invoked by uid 22791); 28 Sep 2010 18:13:26 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 28 Sep 2010 18:13:21 +0000 From: "vanboxem.ruben at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/45822] New: [4.6-regression] Qt 4.7.0 declarative build fails X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vanboxem.ruben at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Tue, 28 Sep 2010 21:59:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-09/txt/msg03036.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45822 Summary: [4.6-regression] Qt 4.7.0 declarative build fails Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: vanboxem.ruben@gmail.com gcc -v: Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=m:/development/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/4.6.0/lto-wrapper.exe Target: x86_64-w64-mingw32 Configured with: ../../src/gcc/configure --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --prefix=/mingw64 --with-sysroot=/mingw64 --enable-lto --disable-multilib --enable-shared --enable-stage1-languages=c,lto --enable-languages=c,c++,lto --with-libiconv-prefix=/home/Ruben/mingw64/build64/gcc-libs --with-libexpat-prefix=/home/Ruben/mingw64/build64/gcc-libs --with-gmp=/home/Ruben/mingw64/build64/gcc-libs --with-mpfr=/home/Ruben/mingw64/build64/gcc-libs --with-mpc=/home/Ruben/mingw64/build64/gcc-libs --disable-win32-registry --enable-fully-dynamic-string --enable-checking=release --disable-werror --disable-nls CFLAGS='-O2 -mtune=core2 -fomit-frame-pointer -momit-leaf-frame-pointer' LFLAGS=-no-undefined BOOT_CFLAGS= 'BOOT_LFLAGS=-flto -fwhopr=2' TARGET_CFLAGS= 'TARGET_LFLAGS=-flto -fwhopr=2' Thread model: win32 gcc version 4.6.0 20100918 (experimental) (GCC) This is built from a snapshot and patched for http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45580 Command used to compile the file and its output: g++ -c -O2 -Wall -frtti -fexceptions -mthreads -DQT_SHARED -DQT_THREAD_SUPPORT -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_BUILD_DECLARATIVE_LIB -DQT_NO_URL_CAST_FROM_STRING -DQT_MAKEDLL -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -D_USE_MATH_DEFINES -DQT_DLL -DQT_NO_DEBUG -DQT_SCRIPT_LIB -DQT_SVG_LIB -DQT_SQL_LIB -DQT_XMLPATTERNS_LIB -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I"..\..\include\QtCore" -I"..\..\include\QtNetwork" -I"..\..\include\QtGui" -I"..\..\include\QtOpenGL" -I"..\..\include\QtXmlPatterns" -I"..\..\include\QtSql" -I"..\..\include\QtSvg" -I"..\..\include\QtScript" -I"..\..\include" -I"..\..\include\QtDeclarative" -I"tmp\rcc\release_shared" -I"tmp" -I"m:\Development\Source\qt\src\declarative\util" -I"m:\Development\Source\qt\src\declarative\graphicsitems" -I"m:\Development\Source\qt\src\declarative\qml" -I"m:\Development\Source\qt\src\declarative\qml\parser" -I"m:\Development\Source\qt\src\declarative\qml\rewriter" -I"m:\Development\Source\qt\src\declarative\debugger" -I"..\..\include\ActiveQt" -I"tmp\moc\release_shared" -I"m:\Development\Source\qt\src\declarative" -I"." -I"..\..\mkspecs\win32-g++" -o tmp\obj\release_shared\qdeclarativeitemsmodule.o m:\Development\Source\qt\src\declarative\graphicsitems\qdeclarativeitemsmodule.cpp In file included from ..\..\include/QtDeclarative/qdeclarativeprivate.h:1:0, from ..\..\include\QtDeclarative/../../../../Source/qt/src/declarative/qml/qdeclarative.h:45, from ..\..\include\QtDeclarative/qdeclarative.h:1, from ..\..\include\QtDeclarative/private/../../../../../Source/qt/src/declarative/graphicsitems/qdeclarativeitemsmodule_p.h:45, from ..\..\include\QtDeclarative/private/qdeclarativeitemsmodule_p.h:1, from m:\Development\Source\qt\src\declarative\graphicsitems\qdeclarativeitemsmodule.cpp:42: ..\..\include/QtDeclarative/../../../../Source/qt/src/declarative/qml/qdeclarativeprivate.h: In constructor 'QDeclarativePrivate::QDeclarativeElement::QDeclarativeElement()': ..\..\include/QtDeclarative/../../../../Source/qt/src/declarative/qml/qdeclarativeprivate.h:85:11: instantiated from 'void QDeclarativePrivate::createInto(void*) [with T = QGraphicsWidget]' ..\..\include\QtDeclarative/../../../../Source/qt/src/declarative/qml/qdeclarative.h:185:5: instantiated from 'int qmlRegisterType(const char*, int, int, const char*) [with T = QGraphicsWidget]' m:\Development\Source\qt\src\declarative\graphicsitems\qdeclarativeitemsmodule.cpp:154:64: instantiated from here ..\..\include/QtDeclarative/../../../../Source/qt/src/declarative/qml/qdeclarativeprivate.h:85:11: error: no matching function for call to 'QFlags::QFlags(int)' ..\..\include/QtCore/../../../../Source/qt/src/corelib/global/qglobal.h:2181:12: note: candidates are: QFlags::QFlags(QFlag) [with Enum = Qt::WindowType] ..\..\include/QtCore/../../../../Source/qt/src/corelib/global/qglobal.h:2180:12: note: QFlags::QFlags(QFlags::Zero) [with Enum = Qt::WindowType, QFlags::Zero = void**] ..\..\include/QtCore/../../../../Source/qt/src/corelib/global/qglobal.h:2179:12: note: QFlags::QFlags(Enum) [with Enum = Qt::WindowType] ..\..\include/QtCore/../../../../Source/qt/src/corelib/global/qglobal.h:2178:12: note: QFlags::QFlags(const QFlags&) [with Enum = Qt::WindowType, QFlags = QFlags] ..\..\include/QtDeclarative/../../../../Source/qt/src/declarative/qml/qdeclarativeprivate.h: In function 'void QDeclarativePrivate::createInto(void*) [with T = QGraphicsWidget]': ..\..\include/QtDeclarative/../../../../Source/qt/src/declarative/qml/qdeclarativeprivate.h:94:37: note: synthesized method 'QDeclarativePrivate::QDeclarativeElement::QDeclarativeElement()' first required here GCC 4.5.2 (snapshot) and 4.4.5 (snapshot) don't exhibit this behavior and compile the file fine. The attached zip files contain the preprocessed sources for GCC 4.5 and the above GCC 4.6.