Bug (for real) in MS-C 3.0

Kerro Panille vch at rruxd.UUCP
Tue Mar 11 01:26:49 AEST 1986


I found a nasty bug in the MS-C 3.0 compiler the other day, and thought I
would tell everyone who might be interested in it. If you have MS-C 3.0,
give this program a try:

struct a
{
	int b;
};

void
funca( c )
struct a *c;
{ 
	int d= 1000;

	c->b *= 1000.0;  \
	c->b *= d;       /    Either of these lines produces the error
}

Then give the command:

cl -c test.c

You should get:

test.c(nn) : Compiler error (internal):Infinite spill

It seems that the compiler just doesn't like this simple structure. The manual
says that you "should never see this message," and tells you to write to MS
and report the bug. No mention about when you're going to get a fix. Fortunatly,
the work-around is obvious.


-- 
Vince Hatem                           +----------------------------------------+
Bell Communications Research          ! "..., isn't that right, Daniel?"       !
Raritan River Software Systems Center ! "When you get that look on your face,  !
444 Hoes Lane                         !  Marty, I go prune my roses."          !
4D-340                                !                   -Frank Herbert       !
Piscatway, NJ 08854                   !                   Chapterhouse: Dune   !
(201) 699-4869             	      !                   pg 459               !
{rrux?, pyux?, bellcore, topaz,       +----------------------------------------+
       ihnp4}!rruxo!vch                    



More information about the Net.bugs mailing list