home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 14 Text / 14-Text.zip / C6_BUGS.ZIP / C6_20099.BUG < prev    next >
Text File  |  1990-09-11  |  1KB  |  54 lines

  1. Q65328 C1001: Internal Compiler Error: '@(#)regMD.c:1.100', Line 3837
  2. Microsoft C Compiler (C)
  3. 6.00   | 6.00
  4. MS-DOS | OS/2
  5.  
  6. Summary:
  7.  
  8. The code below generates the following error when compiled with any
  9. optimization in any memory model:
  10.  
  11.    fatal error C1001: Internal Compiler Error
  12.              (compiler file '@(#)regMD.c:1.100', line 3837)
  13.  
  14. The only workarounds in this case are as follows:
  15.  
  16. 1. Do not use a static array for an index.
  17.  
  18. 2. Do not use register variables for indexing.
  19.  
  20. Sample Code
  21. -----------
  22.  
  23. static int keyList[10];
  24.  
  25. struct
  26. {
  27.   int fdkey[10];
  28. } fsys[30];
  29.  
  30. int bar(int i)
  31. {
  32.   return;
  33. }
  34.  
  35. void foo(int fd)
  36. {
  37.   register j,k;
  38.   int kk;
  39.  
  40.   for (k=0;k<j;k++)
  41.   {
  42.     bar(fsys[fd].fdkey[keyList[k]]);
  43.   }
  44. }
  45.  
  46. Microsoft has confirmed this to be a problem with C version 6.00. We
  47. are researching this problem and will post new information here as it
  48. becomes available.
  49.  
  50. Keywords:  buglist6.00
  51.  
  52. COPYRIGHT Microsoft Corporation, 1990.
  53. Updated  90/09/01 08:26
  54.