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

Nuno Lopes nunoplopes at sapo.pt
Thu Jan 17 15:37:05 PST 2008


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;
}


Nuno 




More information about the cfe-dev mailing list