[cfe-dev] assignment of const struct to non const var triggersassertion in CG

Nuno Lopes nunoplopes at sapo.pt
Fri Jan 18 02:05:57 PST 2008


> On Thursday, January 17, 2008, at 03:38PM, "Nuno Lopes" 
> <nunoplopes at sapo.pt> wrote:
>>Hi again,
>>
>>clang -emit-llvm-bc on the code below triggers the following assertion:
>>implicit cast types must be equal (CGExprAgg.cpp:145).
>>
>>
>>struct foo {int x};
>>
>>extern const struct foo a;
>>
>>void f(){
>>struct foo b = a;
>>}
>>
>>
>
> Good catch! Fixed - see 
> http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20080114/003860.html
>
> Anders

Thanks,
Nuno 




More information about the cfe-dev mailing list