xls icon indicating copy to clipboard operation
xls copied to clipboard

ConstexprEvaluator blows up on empty array

Open RobSpringer opened this issue 2 years ago • 0 comments

The following DSLX causes a boom (out-of-bounds vector access) in the constexpr evaluator:

type Block = u8[4][4];

fn foo() {
  let bar = Block:[];
  ()
}
  1. The ConstexprEvaluator should not explode ever
  2. Parsing should flag this as an error.

RobSpringer avatar Aug 17 '22 16:08 RobSpringer