home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / progc / fixed300.arj / CPMS0004.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1991-06-03  |  488 b   |  21 lines

  1. #if 0
  2. From: Jim Freeman
  3. Subject: auto array size & GP fault during compile
  4. Date: 29 May 91  18:06:40
  5. Status: Fixed in 3.0
  6. #endif
  7.  
  8.  
  9. // This code causes two problems in ZTC 3.0b2.  This code works
  10. // fine in CFRONT 2.0
  11. //  1) It prints an error message "size of x is unknown".
  12. //  2) It gives a GP fault during the compile after printing the
  13. //     above message if the -br or -bx switch is used.
  14. //
  15. class c
  16. {
  17.     static int x[];    // ERROR HERE
  18. };
  19. c::x[] = { 3, 4 };
  20.  
  21.