This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/16714] New: ICE with typeof() involved


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]