google / google/xls

Main function with an argument named "input" generates invalid verilog which won't synthesize

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

Description

```
pub fn main(input: s8[10]) -> s8[10] {
input
}
```

won't synth

however

```
pub fn main(foo: s8[10]) -> s8[10] {
foo
}
```

works just fine.

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.