Unified · Split
| @@ -3795,6 +3795,8 @@ ST_FUNC void unary(void) · 3794 unmodified lines | |||
| 3795 | if (!(type.t & VT_VLA)) { | 3795 | if (!(type.t & VT_VLA)) { |
| 3796 | if (size < 0) | 3796 | if (size < 0) |
| 3797 | tcc_error("sizeof applied to an incomplete type"); | 3797 | tcc_error("sizeof applied to an incomplete type"); |
| 3798 | if(type.t & VT_BITFIELD) | ||
| 3799 | tcc_error("'%s' applied to a bit-field", get_tok_str(t, NULL)); | ||
| 3798 | vpushs(size); | 3800 | vpushs(size); |
| 3799 | } else { | 3801 | } else { |
| 3800 | vla_runtime_type_size(&type, &align); | 3802 | vla_runtime_type_size(&type, &align); |