This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Obj-C Bug



Doing the following:

typedef enum _enumeration {
   First,
   Second,
   Third
} Enumerator;

@interface SomeObject : Object
{
	struct _bitField {
		Enumerator	field:2;
		BOOL			flag:1;
		unsigned		_reserved:29;
	} bitField;
}

@end

Will cause the compiler to generate:

Internal compiler error in `encode_complete_bitfield', at
./objc/objc-act.c:6914

However, the above will work in Enumerator is just declared as unsigned.

Alex Raftis
---
alex@orderfusion.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]