On Jan 9, 2008, at 1:17 PM, Oliver Hunt wrote:
> I would actually expect this to work in the current global init  
> code.  I suspect the code isn't check for implicit conversions or  
> some such...  although that surprises me.

The problem is that the implicit conversion isn't being emitted.  For  
reference, this does codegen correctly:

typedef struct {
unsigned char c;
} t;

const t x = { (unsigned char)1 };



Note the explicit cast to char.

-Chris
_______________________________________________
cfe-dev mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

Reply via email to