www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 24338] New: Cannot concatenate dynamic arrays of enum type

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 puremagic.com
          Reporter: timon.gehr 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;
---

--
Jan 12