Array of unions
    rmc at lanl.ARPA 
    rmc at lanl.ARPA
       
    Fri Jun 28 04:30:50 AEST 1985
    
    
  
	I defined an array of unions as follows:
	    typedef union {
		unsigned char *bytes;
		unsigned long *words;
	    } block;
	    block sched[NKEYS];
	Now if I try to pass sched[i] as a parameter,
the C compiler bombs with "Fatal error in /lib/ccom".
Maybe I should have known that arrays of unions don't
compile, but couldn't the compiler leave me a more
descriptive message?  I'll I'm asking for is a line
number -- that bug took me a couple of hours to locate.
			R. Martin Chavez
			(rmc at lanl.ARPA, chavez at harvard.ARPA)
    
    
More information about the Net.bugs
mailing list