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]

egcs-1.0.2, i686 & alpha, internal compiler error


Cheers.  gcc told me to submit this while I was tormenting it with my lame
attempts to learn a little STL.  I have no doubt that I fed it garbage.

Systems (same behavior on both)
1. pgcc-2.90.27 980315 (egcs-1.0.2 release)
   ../configure --host=i686-pc-linux-gnu --norecursion
   RedHat 5.0, glibc 2
   Note that this is egcs with the pentium group patches.  
2. egcs-2.90.27 980315 (egcs-1.0.2 release)
   ../configure --host=alphaev5-dec-osf4.0 --norecursion


$ g++     list.C   -o list
list.C: In function `int main(int, char **, char **)':
list.C:19: Internal compiler error.
list.C:19: Please submit a full bug report to `egcs-bugs@cygnus.com'.
make: *** [list] Error 1
make: Target `default' not remade because of errors.

list.C<<
#include <ostream.h>
#include <list>

int main(int argc, char* argv[], char* env[])
  {
  list<double> dl;
  cout << dl.size() << endl;
  dl.push_front(0.1);
  cout << dl.size() << endl;
  dl.push_front(0.2);
  cout << dl.size() << endl;
  dl.push_front(0.3);
  cout << dl.size() << endl;

  for( list<double>::const_iterator it = dl.begin();
       it != dl.end();
       it++ )
    {
    cout << static_cast<double>(it).data << endl;
    }
  }
>>list.C


Thanks for egcs!
Reece

-- 
Reece Hart, http://dasher.wustl.edu/~reece/, PGP:0xD178AAF9
Do not send unsolicited bulk email.  Boycott companies which do so.



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