Unified · Split
| @@ -2441,6 +2441,8 @@ static void gen_assign_cast(CType *dt) · 2440 unmodified lines | ||
| 2441 | 2441 | if (sbt == VT_PTR || sbt == VT_FUNC) { |
| 2442 | 2442 | tcc_warning("assignment makes integer from pointer without a cast"); |
| 2443 | 2443 | } |
| 2444 | + if (sbt == VT_STRUCT) | |
| 2445 | + goto error; | |
| 2444 | 2446 | /* XXX: more tests */ |
| 2445 | 2447 | break; |
| 2446 | 2448 | case VT_STRUCT: |