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]

Internal compiler error 364


Hi!

I found a little bug in
     egcs-2.90.29 980515 (egcs-1.0.3 release)
OS: Linux 2.0.33 on a dual PentiumPro machine

The compiler crashes, when dereferencing the null-pointer (return
*NULL;)
----------------------------------------------------------------------------

g++ -c -O -Wall  -I./generic -I.    TCLObject.cc
TCLObject.h: In method `class TCLObject & TCLListObject::operator *()':
In file included from TCLObject.cc:5:
TCLObject.h:611: Internal compiler error 364.
TCLObject.h:611: Please submit a full bug report to
`egcs-bugs@cygnus.com'.
----------------------------------------------------------------------------

/**
 * Dereference
 * concept: Trivial iterator
 * @return some Object
**/
TCLObject &operator *() {
  if( current >= length())
    return *NULL;
  [...]
}

I know, that the code isn't correct...

ciao
   juergen enge




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