[Issue 24338] New: Cannot concatenate dynamic arrays of enum type with static array base type

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jan 12 18:37:55 UTC 2024


https://issues.dlang.org/show_bug.cgi?id=24338

          Issue ID: 24338
           Summary: Cannot concatenate dynamic arrays of enum type with
                    static array base type
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: timon.gehr at gmx.ch

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;
---

--


More information about the Digitalmars-d-bugs mailing list