[Issue 13254] New: Cannot instantiate std.container.Array with immutables as T
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Aug 4 11:39:48 PDT 2014
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: nobody at puremagic.com
Reporter: maidenphil at 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!
--
More information about the Digitalmars-d-bugs
mailing list