It crashes when there is an anonymous ivar of a bitfield type.

@interface FormatScanner {
  int : 1;
}
@end

@implementation FormatScanner
@end

I'm not sure if the code above is valid or not, but out of curiosity, why would 
you want an anonymous bitfield variable?

> On Jun 1, 2017, at 11:33 AM, Joerg Sonnenberger <jo...@bec.de> wrote:
> 
> On Tue, Mar 14, 2017 at 04:00:53AM -0000, Akira Hatanaka via cfe-commits 
> wrote:
>> Author: ahatanak
>> Date: Mon Mar 13 23:00:52 2017
>> New Revision: 297702
>> 
>> URL: http://llvm.org/viewvc/llvm-project?rev=297702&view=rev
>> Log:
>> [CodeGen][ObjC] Fix a bug where the type of an ivar wasn't encoded
>> correctly.
> 
> This results in asserts on the attached test case. Can you have a look,
> please?
> 
> Joerg
> <FormatScanner.m>

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to