assignment of const struct to non const var triggers assertion in CG

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

Good catch! Fixed - see http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20080114/003860.html

Anders

Thanks,
Nuno