← Back to index
|
Original Bugzilla link
Bug 12310 – [CTFE] Support heap allocation for built-in scalar types
Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-03-07T01:01:00Z
Last change time
2014-03-07T01:57:26Z
Keywords
CTFE, pull, rejects-valid
Assigned to
nobody
Creator
k.hara.pg
Comments
Comment #0
by k.hara.pg — 2014-03-07T01:01:50Z
Test case: bool test() { auto p = new int; assert(*p == 0); *p = 10; assert(*p == 10); auto q = new int(3); // newly supported syntax by the issue 9112 assert(*q == 3); *p = 20; assert(*p == 20); return true; } static assert(test());
Comment #1
by k.hara.pg — 2014-03-07T01:08:31Z
https://github.com/D-Programming-Language/dmd/pull/3363
Comment #2
by github-bugzilla — 2014-03-07T01:53:15Z
Commits pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/cdf0a6029a2f0142defaccc4ebabe6ed17798905
fix Issue 12310 - [CTFE] Support heap allocation for built-in scalar types
https://github.com/D-Programming-Language/dmd/commit/75a230000e400a5910527afde2d71cdbf6f40b5b
Merge pull request #3363 from 9rnsr/fix12310 Issue 12310 - [CTFE] Support heap allocation for built-in scalar types