← Back to index
|
Original Bugzilla link
Bug 9070 – nothrow of constructer/destructor isn't correct
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-11-24T04:19:00Z
Last change time
2012-12-04T18:29:50Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
zan77137
Comments
Comment #0
by zan77137 — 2012-11-24T04:19:27Z
This code doesn't work: struct A(T) { this(U)(U x) { } ~this(){} } void main() { A!int a = A!short(); } -------- Result: main.d(4): Error: x.~this is not nothrow main.d(4): Error: constructor main.A!(int).A.__ctor!(short).this 'this' is nothrow yet may throw main.d(9): Error: template instance main.A!(int).A.__ctor!(short) error instantiating
Comment #1
by k.hara.pg — 2012-11-24T05:02:32Z
https://github.com/D-Programming-Language/dmd/pull/1317
Comment #2
by github-bugzilla — 2012-12-03T18:09:48Z
Commits pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/cff6404b990fe5d0a88cfc3a2abba86d5139a36e
fix Issue 9070 - nothrow of constructer/destructor isn't correct
https://github.com/D-Programming-Language/dmd/commit/f9fe4a8a4fa9f25a5f33007c455e0be6a758a1bb
Merge pull request #1317 from 9rnsr/fix9070 Issue 9070 - nothrow of constructer/destructor isn't correct