Issue 11974 - ICE(cast.c) Segfault with invalid assignment

https://d.puremagic.com/issues/show_bug.cgi?id=11974