🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #1419

Microsoft C 6.0 Bug - Please HELP !!!!!!!

#1419
From: oleg
Date: Thu, 12 Jul 1990 20:21
23 lines
823 bytes
The following program causes internal error Microsoft Compiler 6.0.
This does not happen with 5.1. What an improvement !




#define mtod(x,t)       ((t)((unsigned long)(x) + (unsigned long)((x)->m_off)))

struct mbuf {
        struct  mbuf far *m_next;
        unsigned long  m_off;
        short   m_len;
        short   m_type;
        unsigned char  m_dat[128];
        struct  mbuf far *m_act;
};

try()
{
   struct mbuf far *m;

   a(mtod(m, char far *));
}
Technical Details
Message-ID: <1990Jul12.202143.20755@arnor.uucp>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!bywater!arnor!news

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!bywater!arnor!news
From: oleg@ibm.com
Newsgroups: comp.os.os2.programmer
Subject: Microsoft C 6.0 Bug - Please HELP !!!!!!!
Message-ID: <1990Jul12.202143.20755@arnor.uucp>
Date: 12 Jul 90 20:21:43 GMT
Sender: news@arnor.uucp (NNTP News Poster)
Organization: IBM T.J. Watson Research Center
Lines: 23