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

          Issue ID: 13254
           Summary: Cannot instantiate std.container.Array with immutables
                    as T
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Phobos
          Assignee: nob...@puremagic.com
          Reporter: maidenp...@hotmail.com

Using dmd distribution 2.065. This does not compile:

std.container.Array!(immutable(dchar)) array;

Error:

The error seems to be caused because Array.Payload uses destroy on an immutable
type and that makes the compiler cry. I see that the code has been updated to
support "elaborate destructors", but I don't think it will prevent the problem.

Thx!

--

Reply via email to