# Sema: Fix many-pointer array concatenation at comptime \(\#11512\) · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/032c722d2019a475362c0ae01241a80417bdd8a2)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 032c722d2019a475362c0ae01241a80417bdd8a2

Requested commit: 032c722d2019a475362c0ae01241a80417bdd8a2

Commit: 032c722d2019a475362c0ae01241a80417bdd8a2

Tree: 97e0d9229e2f1173d2bfb8f53351476656042db4

Author: sin-ack

Committer: GitHub

## Message

```
Sema: Fix many-pointer array concatenation at comptime  (#11512)

* Sema: Correctly determine whether array_cat lhs and rhs are single ptrs

Many-pointers are also not single-pointers and wouldn't be considered
here. This commit makes the conditions use the appropriately-named
isSinglePointer instead.

* Sema: Correctly obtain ArrayInfo for many-pointer concatenation

Many-pointers at comptime have a known size like slices and can be used
in array concatenation. This fixes a stage1 regression.

* test: Add comptime manyptr concatenation test

Co-authored-by: sin-ack <sin-ack@users.noreply.github.com>
```

## Parents

- [609896a6e8180ec32844d2b4656b52ef41fe7757](https://git.cafe/gitcafe/zig/commit/609896a6e8180ec32844d2b4656b52ef41fe7757?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/032c722d2019a475362c0ae01241a80417bdd8a2?format=markdown)
