Article View: comp.os.msdos.programmer
Article #7881Re: MS C Compiler bug
From: Ricky LUI
Date: Fri, 10 Nov 1995 00:38
Date: Fri, 10 Nov 1995 00:38
26 lines
1053 bytes
1053 bytes
<47oaiq$b02@cnn.Princeton.EDU>
prebys@puhep1.princeton.edu
>> =========================================================
>> int main(int, char **);
>>
>> int main(int argc, char **argv)
>> {
>> float aaabbb[2][500];
>> exit(0);
>> }
>> ==========================================================
>>
>> compiles, but causes the error
>>
>> R6000 - stack overflow
I use Microsoft C/C++ Ver7.0, and I had to use a char[512][512] array.
The only way I can get around this problem is to declare the variable
as:
static char my_array[512][512]
Hope this helps
Ricky
Technical Details
Message-ID:
<47u6tl$g2q@frontier.rc.m-kagaku.co.jp>Path:
arc1-ca.pugleaf.net!frontier.rc.m-kagaku.co.jp!rickyReferences:
<47oaiq$b02@cnn.Princeton.EDU>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!frontier.rc.m-kagaku.co.jp!ricky From: ricky@rc.m-kagaku.co.jp (Ricky LUI) Newsgroups: comp.os.msdos.programmer,comp.lang.c Subject: Re: MS C Compiler bug Date: 10 Nov 1995 00:38:13 GMT Organization: Mitsubishi Chemical Corporation,Yokohama Research Center,Japan. Message-ID: <47u6tl$g2q@frontier.rc.m-kagaku.co.jp> References: <47oaiq$b02@cnn.Princeton.EDU> NNTP-Posting-Host: atlas.rc.m-kagaku.co.jp X-Newsreader: mnews [version 1.16PL4]