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

Anders Carlsson andersca at mac.com
Thu Jan 17 18:27:18 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



More information about the cfe-dev mailing list