Issue 172868
Summary [WebAssembly] error importing tables with limits
Labels new issue
Assignees
Reporter daxpedda
    The following seems to work just fine:
```gas
.import_module foo, env",
.import_name foo, foo",
.tabletype foo, externref
```
produces:
```wat
(import "env" "foo" (table 0 externref))
```
But adding a minimum size:
```gas
.tabletype foo, externref, 10
```
doesn't change the output.

More interestingly, adding a maximum size:
```gas
.tabletype foo, externref, 10, 50
```
actually produces an error:
```
EOF while reading string
```

Just defining a table, not importing it, works fine.

I briefly tried to figure out the issue, but didn't find anything amiss in the code.

Pinging @sbc100 as a target maintainer.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to