🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.bugs
Article #501

Bug (for real) in MS-C 3.0

#501
From: Kerro Panille
Date: Mon, 10 Mar 1986 15:26
43 lines
2014 bytes
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                    
Technical Details
Message-ID: <122@rruxd.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!gamma!pyuxww!pyuxv!rruxa!rruxo!rruxu!rruxc!rruxr!rruxp!rruxff!rruxd!vch

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83; site rruxd.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!gamma!pyuxww!pyuxv!rruxa!rruxo!rruxu!rruxc!rruxr!rruxp!rruxff!rruxd!vch
From: vch@rruxd.UUCP (Kerro Panille)
Newsgroups: net.bugs,net.micro.att,net.micro.pc,net.micro
Subject: Bug (for real) in MS-C 3.0
Message-ID: <122@rruxd.UUCP>
Date: Mon, 10-Mar-86 10:26:49 EST
Article-I.D.: rruxd.122
Posted: Mon Mar 10 10:26:49 1986
Date-Received: Wed, 12-Mar-86 04:01:05 EST
Organization: Colony, Pandora
Lines: 43