This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/16714] New: ICE with typeof() involved
- From: "marco at technoboredom dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Jul 2004 11:18:33 -0000
- Subject: [Bug c++/16714] New: ICE with typeof() involved
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
This code produces an ICE with gcc-3.4.1/linux:
/* BEGIN */
template<class T>
struct W { };
template<class X, class Y>
W< typeof(X()+Y()) > operator + (W<X> x, W<Y> y);
int fail()
{
W<int> wx,wy;
wx=wx+wy;
}
/*END */
The error message is:
marco@gontscharow:~/tmp/gcc$ /opt/gcc-3.4.1/bin/g++ -c a.cc
a.cc: In function `int fail()':
a.cc:10: internal compiler error: in write_type, at cp/mangle.c:1566
--
Summary: ICE with typeof() involved
Product: gcc
Version: 3.4.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: marco at technoboredom dot net
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i486-slackware-linux
GCC host triplet: i486-slackware-linux
GCC target triplet: i486-slackware-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16714