public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/45822] New: [4.6-regression] Qt 4.7.0 declarative build fails
@ 2010-09-28 21:59 vanboxem.ruben at gmail dot com
2010-09-29 9:58 ` [Bug c++/45822] [4.6-regression] Qt 4.7.0 " vanboxem.ruben at gmail dot com
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: vanboxem.ruben at gmail dot com @ 2010-09-28 21:59 UTC (permalink / raw)
To: gcc-bugs
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<QGraphicsWidget>::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<Qt::WindowType>::QFlags(int)'
..\..\include/QtCore/../../../../Source/qt/src/corelib/global/qglobal.h:2181:12:
note: candidates are: QFlags<Enum>::QFlags(QFlag) [with Enum = Qt::WindowType]
..\..\include/QtCore/../../../../Source/qt/src/corelib/global/qglobal.h:2180:12:
note: QFlags<Enum>::QFlags(QFlags<Enum>::Zero) [with Enum =
Qt::WindowType, QFlags<Enum>::Zero = void**]
..\..\include/QtCore/../../../../Source/qt/src/corelib/global/qglobal.h:2179:12:
note: QFlags<Enum>::QFlags(Enum) [with Enum = Qt::WindowType]
..\..\include/QtCore/../../../../Source/qt/src/corelib/global/qglobal.h:2178:12:
note: QFlags<Enum>::QFlags(const QFlags<Enum>&) [with Enum =
Qt::WindowType, QFlags<Enum> = QFlags<Qt::WindowType>]
..\..\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<QGraphicsWidget>::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.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/45822] [4.6-regression] Qt 4.7.0 build fails
2010-09-28 21:59 [Bug c++/45822] New: [4.6-regression] Qt 4.7.0 declarative build fails vanboxem.ruben at gmail dot com
@ 2010-09-29 9:58 ` vanboxem.ruben at gmail dot com
2010-09-30 7:37 ` pinskia at gcc dot gnu.org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: vanboxem.ruben at gmail dot com @ 2010-09-29 9:58 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45822
--- Comment #3 from Ruben Van Boxem <vanboxem.ruben at gmail dot com> 2010-09-28 20:34:48 UTC ---
This also happens later in the build process, with this command and output:
g++ -c -O2 -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT
-DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT
-DQT_NEEDS_QMAIN -I"..\..\..\include\QtCore" -I"..\..\..\include\QtGui"
-I"..\..\..\include" -I"..\..\..\include\ActiveQt" -I"tmp\moc\release_shared"
-I"m:\Development\Source\qt\examples\animation\moveblocks" -I"."
-I"..\..\..\mkspecs\win32-g++" -o tmp\obj\release_shared\main.o
m:\Development\Source\qt\examples\animation\moveblocks\main.cpp
m:\Development\Source\qt\examples\animation\moveblocks\main.cpp: In constructor
'QGraphicsRectWidget::QGraphicsRectWidget()':
m:\Development\Source\qt\examples\animation\moveblocks\main.cpp:69:7: error: no
matching function for call to 'QFlags<Qt::WindowType>::QFlags(int)'
..\..\..\include/QtCore/../../../../Source/qt/src/corelib/global/qglobal.h:2181:12:
note: candidates are: QFlags<Enum>::QFlags(QFlag) [with Enum = Qt::WindowType]
..\..\..\include/QtCore/../../../../Source/qt/src/corelib/global/qglobal.h:2180:12:
note: QFlags<Enum>::QFlags(QFlags<Enum>::Zero) [with Enum =
Qt::WindowType, QFlags<Enum>::Zero = void**]
..\..\..\include/QtCore/../../../../Source/qt/src/corelib/global/qglobal.h:2179:12:
note: QFlags<Enum>::QFlags(Enum) [with Enum = Qt::WindowType]
..\..\..\include/QtCore/../../../../Source/qt/src/corelib/global/qglobal.h:2178:12:
note: QFlags<Enum>::QFlags(const QFlags<Enum>&) [with Enum =
Qt::WindowType, QFlags<Enum> = QFlags<Qt::WindowType>]
m:\Development\Source\qt\examples\animation\moveblocks\main.cpp: In function
'int qMain(int, char**)':
m:\Development\Source\qt\examples\animation\moveblocks\main.cpp:177:40: note:
synthesized method 'QGraphicsRectWidget::QGraphicsRectWidget()' first required
here
I can provide preprocessed source for this if needed.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/45822] [4.6-regression] Qt 4.7.0 build fails
2010-09-28 21:59 [Bug c++/45822] New: [4.6-regression] Qt 4.7.0 declarative build fails vanboxem.ruben at gmail dot com
2010-09-29 9:58 ` [Bug c++/45822] [4.6-regression] Qt 4.7.0 " vanboxem.ruben at gmail dot com
@ 2010-09-30 7:37 ` pinskia at gcc dot gnu.org
2010-09-30 8:10 ` pinskia at gcc dot gnu.org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2010-09-30 7:37 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45822
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.6.0
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/45822] [4.6-regression] Qt 4.7.0 build fails
2010-09-28 21:59 [Bug c++/45822] New: [4.6-regression] Qt 4.7.0 declarative build fails vanboxem.ruben at gmail dot com
2010-09-29 9:58 ` [Bug c++/45822] [4.6-regression] Qt 4.7.0 " vanboxem.ruben at gmail dot com
2010-09-30 7:37 ` pinskia at gcc dot gnu.org
@ 2010-09-30 8:10 ` pinskia at gcc dot gnu.org
2010-10-04 3:22 ` rion4ik at gmail dot com
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2010-09-30 8:10 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45822
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> 2010-09-29 22:02:32 UTC ---
This issue looks more likely QT issues than a GCC one. The attached file is
not unzipping for me though.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/45822] [4.6-regression] Qt 4.7.0 build fails
2010-09-28 21:59 [Bug c++/45822] New: [4.6-regression] Qt 4.7.0 declarative build fails vanboxem.ruben at gmail dot com
` (2 preceding siblings ...)
2010-09-30 8:10 ` pinskia at gcc dot gnu.org
@ 2010-10-04 3:22 ` rion4ik at gmail dot com
2010-12-03 18:42 ` ktietz at gcc dot gnu.org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rion4ik at gmail dot com @ 2010-10-04 3:22 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45822
Rion <rion4ik at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rion4ik at gmail dot com
--- Comment #5 from Rion <rion4ik at gmail dot com> 2010-10-04 03:22:39 UTC ---
same here.
i experienced very similar bug/feature when compiled Psi jabber client as well.
looks like automatic calling proper constructor of object does not work well
anymore. or maybe some deprecated forms were removed from gcc.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/45822] [4.6-regression] Qt 4.7.0 build fails
2010-09-28 21:59 [Bug c++/45822] New: [4.6-regression] Qt 4.7.0 declarative build fails vanboxem.ruben at gmail dot com
` (3 preceding siblings ...)
2010-10-04 3:22 ` rion4ik at gmail dot com
@ 2010-12-03 18:42 ` ktietz at gcc dot gnu.org
2010-12-04 1:56 ` jason at gcc dot gnu.org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: ktietz at gcc dot gnu.org @ 2010-12-03 18:42 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45822
Kai Tietz <ktietz at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ktietz at gcc dot gnu.org
--- Comment #6 from Kai Tietz <ktietz at gcc dot gnu.org> 2010-12-03 18:41:47 UTC ---
Hmm, it seems that type "Enum' isn't automatical converted to 'int' anymore.
Does it help to add to template class QFlags the following constructor 'inline
QFlags(int f) : i((Enum)f) {}' ?
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/45822] [4.6-regression] Qt 4.7.0 build fails
2010-09-28 21:59 [Bug c++/45822] New: [4.6-regression] Qt 4.7.0 declarative build fails vanboxem.ruben at gmail dot com
` (4 preceding siblings ...)
2010-12-03 18:42 ` ktietz at gcc dot gnu.org
@ 2010-12-04 1:56 ` jason at gcc dot gnu.org
2010-12-08 20:01 ` jason at gcc dot gnu.org
2010-12-10 15:56 ` jakub at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu.org @ 2010-12-04 1:56 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45822
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2010.12.04 01:56:18
CC| |jason at gcc dot gnu.org
Ever Confirmed|0 |1
--- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> 2010-12-04 01:56:18 UTC ---
Mine. This is a problem with my overload resolution hack from the implicitly
deleted patch.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/45822] [4.6-regression] Qt 4.7.0 build fails
2010-09-28 21:59 [Bug c++/45822] New: [4.6-regression] Qt 4.7.0 declarative build fails vanboxem.ruben at gmail dot com
` (5 preceding siblings ...)
2010-12-04 1:56 ` jason at gcc dot gnu.org
@ 2010-12-08 20:01 ` jason at gcc dot gnu.org
2010-12-10 15:56 ` jakub at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: jason at gcc dot gnu.org @ 2010-12-08 20:01 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45822
--- Comment #8 from Jason Merrill <jason at gcc dot gnu.org> 2010-12-08 20:00:41 UTC ---
Author: jason
Date: Wed Dec 8 20:00:37 2010
New Revision: 167602
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=167602
Log:
PR c++/45822
* cp-tree.h (LOOKUP_DEFAULTED): New.
* call.c (add_function_candidate): Check it.
* method.c (synthesized_method_walk): Set it.
(do_build_copy_assign): Likewise.
* init.c (perform_member_init): Likewise.
(emit_mem_initializers): Likewise.
Added:
trunk/gcc/testsuite/g++.dg/init/synth4.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/call.c
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/init.c
trunk/gcc/cp/method.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/45822] [4.6-regression] Qt 4.7.0 build fails
2010-09-28 21:59 [Bug c++/45822] New: [4.6-regression] Qt 4.7.0 declarative build fails vanboxem.ruben at gmail dot com
` (6 preceding siblings ...)
2010-12-08 20:01 ` jason at gcc dot gnu.org
@ 2010-12-10 15:56 ` jakub at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2010-12-10 15:56 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45822
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> 2010-12-10 15:55:47 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2010-12-10 15:56 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-28 21:59 [Bug c++/45822] New: [4.6-regression] Qt 4.7.0 declarative build fails vanboxem.ruben at gmail dot com
2010-09-29 9:58 ` [Bug c++/45822] [4.6-regression] Qt 4.7.0 " vanboxem.ruben at gmail dot com
2010-09-30 7:37 ` pinskia at gcc dot gnu.org
2010-09-30 8:10 ` pinskia at gcc dot gnu.org
2010-10-04 3:22 ` rion4ik at gmail dot com
2010-12-03 18:42 ` ktietz at gcc dot gnu.org
2010-12-04 1:56 ` jason at gcc dot gnu.org
2010-12-08 20:01 ` jason at gcc dot gnu.org
2010-12-10 15:56 ` jakub at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).