Unified · Split
| @@ -3795,6 +3795,8 @@ ST_FUNC void unary(void) · 3794 unmodified lines | ||
| 3795 | 3795 | if (!(type.t & VT_VLA)) { |
| 3796 | 3796 | if (size < 0) |
| 3797 | 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 | 3800 | vpushs(size); |
| 3799 | 3801 | } else { |
| 3800 | 3802 | vla_runtime_type_size(&type, &align); |