Bug 24338 – Cannot concatenate dynamic arrays of enum type with static array base type
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2024-01-12T18:37:55Z
Last change time
2024-01-12T22:04:49Z
Keywords
pull
Assigned to
No Owner
Creator
timon.gehr
Comments
Comment #0 by timon.gehr — 2024-01-12T18:37:55Z
Works with DMD 2.105.1, fails with DMD 2.105.2:
---
enum Foo:char[4]{ elem="test" }
immutable a=[Foo.elem];
immutable b=[Foo.elem];
immutable c=a~b;
---
Comment #1 by dlang-bot — 2024-01-12T20:38:49Z
@tgehr created dlang/dmd pull request #16026 "fix Issue 24338 - Cannot concatenate dynamic arrays of enum type with static array base type" fixing this issue:
- fix Issue 24338 - Cannot concatenate dynamic arrays of enum type with static array base type
https://github.com/dlang/dmd/pull/16026
Comment #2 by dlang-bot — 2024-01-12T22:04:49Z
dlang/dmd pull request #16026 "fix Issue 24338 - Cannot concatenate dynamic arrays of enum type with static array base type" was merged into stable:
- f2dc1409868e20629a717fbd701c1da0e5151c20 by Timon Gehr:
fix Issue 24338 - Cannot concatenate dynamic arrays of enum type with static array base type
https://github.com/dlang/dmd/pull/16026