← Back to index
|
Original Bugzilla link
Bug 7655 – scope class instantiations not supported in CTFE
Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-03-06T04:48:05Z
Last change time
2019-07-28T12:28:37Z
Keywords
CTFE
Assigned to
No Owner
Creator
Martin Nowak
Comments
Comment #0
by code — 2012-03-06T04:48:05Z
cat > bug.d << CODE int foo() { scope obj = new Object; return 1; } enum v = foo(); CODE dmd -c bug -------- Error: Cannot interpret delete obj at compile time --------
Comment #1
by clugdbug — 2012-03-07T00:57:14Z
Arguably a duplicate of bug 6907.
Comment #2
by pro.mathias.lang — 2019-07-28T12:28:37Z
This compiles with 2.086.0