Path: chuka.playstation.co.uk!news From: alex@teeth.demon.co.uk (Alex Amsel) Newsgroups: scee.yaroze.programming.3d_graphics,scee.yaroze.programming.gnu_compiler,scee.yaroze.programming.codewarrior Subject: Best Compiler bug ever (almost) Date: Thu, 10 Apr 1997 03:02:56 GMT Organization: Into Beyond Lines: 21 Message-ID: <334c572f.9721328@news.playstation.co.uk> Reply-To: alex@teeth.demon.co.uk NNTP-Posting-Host: teeth.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Newsreader: Forte Agent .99g/32.335 Xref: chuka.playstation.co.uk scee.yaroze.programming.3d_graphics:63 scee.yaroze.programming.gnu_compiler:12 scee.yaroze.programming.codewarrior:28 We have come up against several compiler and ps-x bugs so far, including gcc crashing on -O3 compiles [stack error] on simple code and some other stuff, but this is brilliant! The following code kills the Yaroze. Something to do with the variable name length (9) although longer and shorter seems ok. Only occurs with certain sized arrays (something to do with odd values?) and with unsigned shorts possibly. Anyway, mad mad mad bug. libps.h doesn't need to be included. unsigned short PlayerMap[3*5]; main() { } * Alex Amsel * Into Beyond Web Design & JAVA Programming * * http://www.intobeyond.com * WWFC Play off ****ers'97 * MM: "Hand the opposition the lead, the supporters love it"