google / google/xls

Bad error message when using bits type in place of struct type

Open
#825 0 comments 0 reactions 0 assignees View on GitHub
bug dslx
Dominant language
C++
Stars
1.9k
Forks
283
Avg merge
2d 10h
Merged PRs (30d)
135

Description

No reference is given to the DSLX source code.

```
fn foo() -> () {
let a = u15 { x: u32:42 };
()
}
```

```
$ bazel-bin/third_party/xls/dslx/interpreter_main input.x
...
E0113 15:44:24.360973 8501 deduce.cc:1765] INTERNAL: XLS_RET_CHECK failure (third_party/xls/dslx/deduce.cc:1765) struct_type != nullptr uN[16]
...
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.