Bug 18099 – betterC check throw statements error!

Status
RESOLVED
Resolution
FIXED
Severity
blocker
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-12-18T04:13:40Z
Last change time
2017-12-30T03:03:55Z
Keywords
betterC
Assigned to
No Owner
Creator
changlon

Comments

Comment #0 by changlon — 2017-12-18T04:13:40Z
============ code ============== struct TypePool { struct SliceType { this(SliceType ) {} ~this() {} } struct { auto slice(){ SliceType _slice ; return _slice ; } } } ================================ dmd -betterC app.d Error: Cannot use throw statements with -betterC
Comment #1 by changlon — 2017-12-23T07:18:04Z
====== struct D() { struct V { ~this() { } } auto get() { V v ; return v ; } } alias T = D!(); ======
Comment #2 by bugzilla — 2017-12-28T06:28:10Z
Comment #3 by github-bugzilla — 2017-12-29T05:14:28Z
Commits pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/42ea3732608bc4d877fb0139a00ade9ba9379dd8 fix Issue 18099 - betterC check throw statements error! https://github.com/dlang/dmd/commit/0a87e133da7fedc0622a26b40705b82d8127bb25 Merge pull request #7539 from WalterBright/fix18099 fix Issue 18099 - betterC check throw statements error! merged-on-behalf-of: Sebastian Wilzbach <[email protected]>
Comment #4 by github-bugzilla — 2017-12-30T03:03:55Z
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/42ea3732608bc4d877fb0139a00ade9ba9379dd8 fix Issue 18099 - betterC check throw statements error! https://github.com/dlang/dmd/commit/0a87e133da7fedc0622a26b40705b82d8127bb25 Merge pull request #7539 from WalterBright/fix18099