Path: utzoo!utgpu!bnr-vpa!bruce From: bruce@bnr-vpa.UUCP (Bruce Townsend) Newsgroups: comp.sys.hp Subject: Initialization bug in Series 800 C compiler? Message-ID: <105@bnr-vpa.UUCP> Date: 1 Dec 88 02:47:00 GMT Organization: Bell-Northern Research, Ottawa, Ontario Lines: 23 I have run across what seems to be a bug in the HP-UX C compiler for the Series 825 running version 2.0 of HP-UX. It does not accept very large initialized arrays: static short big_array[] = { 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, . . with more than 64K bytes data. . 0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff,0xffff, } If the above is compiled (cc -c filename.c), it silently generates an object file that is very small (about 700 bytes). If the data is reduced to just below 64K bytes, it compiles correctly. Is this a known bug? Hopefully it will be fixed in upcoming releases. Thanks for any info, etc... -- Bruce Townsend (bnr-vpa!bruce) Phone: (613) 763-3008 Bell-Northern Research Usenet: {utzoo, utcs}!bnr-vpa!bruce P.O. Box 3511, Station C, Ottawa, Ontario, Canada, K1Y 4H7