Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!unmvax!nmt.edu!dwho From: dwho@jupiter.nmt.edu (David Olix) Newsgroups: comp.sys.hp Subject: Optimizer bug in cc(1) on HP9000/835 Keywords: Internal error Message-ID: <1990Sep19.210628.10847@nmt.edu> Date: 19 Sep 90 21:06:28 GMT Sender: dwho@nmt.edu (David Olix) Organization: New Mexico Institute of Mining and Technology Lines: 41 Since I can't seem to be able to report bugs to the Software Support folks until we get our "official" ID number I figured I'd post this here so everyone (hopefully at least someone at HP) will see.... Problem: Optimizer bug in cc(1). System: HP9000/835 running HP-UX 7.0 Compiler ID: HP92453-01 A.07.10 HP C Compiler Oversimplified description: % cat ccbug.c main() { char *p; int i; i = 0; *(p = i - i); } % cc -v -O ccbug.c /lib/cpp ccbug.c /tmp/ctmAAAa20274 -D__hp9000s800 -D__hppa -D__hpux -D__unix cc: Entering Preprocessor. /lib/ccom /tmp/ctmAAAa20274 ccbug.o -O2 -v -Ac cc: Entering Scanner and Parser. cc: Entering Semantic Analyzer. cc: Entering Aliaser. cc: Internal error 3277: Investigation required - Please contact HP Support. % I was also able to purturb internal errors 3265 and 3267 by using variants of the above with the ternary operator. Basically, I think it has something to do with an incorrect implicit int --> char * conversion. I know the C program tries to dereference a NULL pointer, but that's not the point.... --David Olix | And I *still* hate the Simpsons, --dwho@{minos|jupiter|nmtvax}.nmt.edu | but I wanted a short .sig -- Bulky and offensive .sig follows... ======================================================================== >click< |\/\/\/|