Bug 15772 – emplace works with abstract classes but it shouldn't

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-03-06T10:43:00Z
Last change time
2016-03-14T13:34:14Z
Assigned to
nobody
Creator
b2.temp

Comments

Comment #0 by b2.temp — 2016-03-06T10:43:12Z
abstract class Foo {} void main(string[] args) { import std.c.stdlib; auto mem = malloc(typeid(Foo).initializer.length); import std.conv; auto c = emplace!Foo(cast(Foo*)mem); }
Comment #1 by github-bugzilla — 2016-03-14T13:34:14Z
Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/f8bde7f8904b3bb47a93e23c48c98da3f407dd67 fixed issue 15772 https://github.com/D-Programming-Language/phobos/commit/8221ff729a1a5a9aa55cd359f9216c29122adc84 Merge pull request #4057 from BBasile/issue-15772 fixed issue 15772 - emplace works with abstract classes but it shouldn't