Thread View: net.bugs
1 messages
1 total messages
Started by Kerro Panille
Mon, 10 Mar 1986 15:26
Bug (for real) in MS-C 3.0
Author: Kerro Panille
Date: Mon, 10 Mar 1986 15:26
Date: Mon, 10 Mar 1986 15:26
43 lines
2014 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads