From: utzoo!decvax!ucbvax!ucbcad:tektronix!teklabs!ogcvax!rascal Newsgroups: net.unix-wizards Title: Lint bug with bit fields Article-I.D.: ogcvax.265 Posted: Wed Mar 30 02:22:02 1983 Received: Thu Mar 31 04:19:18 1983 I'm getting a error from lint (4.1 BSD, 11/780) on: 1: struct packed { 2: long 3: index: 12, 4: offset: 20; 5: }; at line 3 and 4: illegal field type. Of course, cc doesn't complain. Everything works fine if I change the long to an int. What's the scoop? Is it fixed in System V? Should I forget about bit fields and define some macros? (You see, I've made a deal with my partners to make sure all my code is lint free.) I need help!