[Bug c++/16714] New: ICE with typeof() involved
marco at technoboredom dot net
gcc-bugzilla@gcc.gnu.org
Mon Jul 26 11:18:00 GMT 2004
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
More information about the Gcc-bugs
mailing list