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]

Error 364 when returning "*NULL"


I appear to have triggered a bug by trying to return the value of
"*NULL". This is with the version of egcc provided with Debian Linux
2.0:

abuse@verrine:~/jas-0.1/src$ cat egcc.cc
#include <String.h>

class indConstant {
public:
  const String &indConstant::toString(void) const;
};

const String &indConstant::toString(void) const {
  return *NULL;
}
abuse@verrine:~/jas-0.1/src$ egcc egcc.cc
egcc.cc: In method `const class String & indConstant::toString() const':
egcc.cc:9: Internal compiler error 364.
egcc.cc:9: Please submit a full bug report to `egcs-bugs@cygnus.com'.
abuse@verrine:~/jas-0.1/src$ egcc -v
Reading specs from /usr/lib/gcc-lib/i486-linux/egcs-2.90.29/specs
gcc version egcs-2.90.29 980515 (egcs-1.0.3 release)

-- 
   Peter Corlett, Moseley, Birmingham, England. Tel. +44 7050 603311
       Usenet Millenium in 49 days: Will October arrive at last?


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