This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12040] New: qt-x11-free-3.2.0 ICEs in build with mainline
- From: "jss at ast dot cam dot ac dot uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Aug 2003 09:46:28 -0000
- Subject: [Bug c++/12040] New: qt-x11-free-3.2.0 ICEs in build with mainline
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12040
Summary: qt-x11-free-3.2.0 ICEs in build with mainline
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jss at ast dot cam dot ac dot uk
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
Reading specs from /data/gcc-3.4/lib/gcc/i686-pc-linux-gnu/3.4/specs
Configured with: '/data/gcc-3.4/tmp/gcc/configure' '--prefix=/data/gcc-3.4
'--enable-languages=c,c++ '--enable-threads
Thread model: posix
gcc version 3.4 20030822 (experimental)
g++ ICEs on qdatetime.cc when building in the moc directory.
[jss@localhost moc]$ g++ -O qdatetime.ii.bz2
../tools/qstring.h: In member function `QString QDate::toString(Qt::DateFormat)
const':
../tools/qstring.h:1035: internal compiler error: tree check: expected class 'd
', have 'r' (indirect_ref) in genrtl_cleanup_stmt, at c-semantics.c:760
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
I think I've reduced this down to a simple testcase:
class mytest
{
public:
mytest( const mytest & );
mytest();
~mytest();
mytest &operator+=(const mytest& str);
};
inline const mytest operator+( const mytest &s1, const mytest &s2 )
{
mytest tmp( s1 );
tmp += s2;
return tmp;
}
int main()
{
mytest a;
mytest b;
mytest c = a + b;
return 0;
}
[jss@localhost jss]$ g++ -O mytest.cc
mytest.cc: In function `int main()':
mytest.cc:14: internal compiler error: tree check: expected class 'd', have 'r'
(indirect_ref) in genrtl_cleanup_stmt, at c-semantics.c:760
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.