ConstexprEvaluator blows up on empty array
Open
dslx
- Dominant language
- C++
- Stars
- 1.9k
- Forks
- 283
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 135
Description
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.
Contributor guide
Assessment
This issue has not been assessed yet.