Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!pt.cs.cmu.edu!sei!prp From: prp@sei.cmu.edu (Patrick Place) Newsgroups: comp.sys.att Subject: 3B1 compiler bug warning Message-ID: <3807@fy.sei.cmu.edu> Date: 11 Aug 89 17:04:04 GMT Organization: Carnegie-Mellon University (Software Engineering Institute), Pgh, PA Lines: 24 This is a warning to anyone developing code using cc on a 3B1 - the version appears to be 3.51. the following function call f(a,b,*c++); does not compile correctly when c is declared register short* c; However, the bug is more subtle than that, it only occurs when the auto-incremented short pointer is the last parameter in the function call. Obviously, one can rearrange the code to look like f(a,b,*c); c++; However, this is a nuisance, both to search for and fix, however, it does compile correctly. Perhaps this is a well known compiler bug, in which case sorry for wasting the bandwidth. I would be interested in other known compiler bugs, so as to avoid dangerous constructs in my code. Pat Place prp@sei.cmu.edu