Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!snorkelwacker.mit.edu!ira.uka.de!fauern!forwiss.uni-passau.de!hal!hessmann From: hessmann@hal.fmi.uni-passau.de (Georg Hessmann) Newsgroups: comp.sys.amiga.programmer Subject: Re: Bug in SAS C 5.10a ? Keywords: SAS C,C,Bug Message-ID: <1991May21.122905.1073@forwiss.uni-passau.de> Date: 21 May 91 12:29:05 GMT References: <9195@mcshh.hanse.de> Sender: usenet@forwiss.uni-passau.de (USENET News System) Distribution: comp Organization: University of Passau, Germany Lines: 37 Nntp-Posting-Host: hal.fmi.uni-passau.de In article <9195@mcshh.hanse.de> hkr@mcshh.hanse.de (Holger Kruse) writes: | |I think I found a serious bug in SAS C 5.10a and some earlier versions. |I reported the bug to SAS a month ago but have not got any answer yet. I've reported this bug two month ago, same result :-) |According to the manual, the size of a single subscript of an array may be |larger than 32767 if long (32-bit) integers are used, this means that a |declaration like | int far a[2][40000]; |is valid, if long integers are used. | |The compiler produces incorrect code, if the size of the second subscript |is larger than 32767 and if the first subscript is indexed by a variable |less than 32 bits long. [description of the bug deleted] |I could understand if SAS C reported an error in the above |case, but there is no error message or warning. You simply get a GURU |when you run the compiled program. | |Or maybe I am wrong and what I am doing is illegal in C ? | |Btw, the Unix TeX package contains lots of declarations like the above. |So if you try to compile it on an Amiga, better be careful... That's the reason, why there exists no bigTeX version of PasTeX. :-(( |Holger Kruse Georg. -- hessmann@unipas.fmi.uni-passau.de hessmann@unipas.uucp