Bug 18737 – An assert(0) should be a leaf in constructor flow analysis

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-04-06T04:48:52Z
Last change time
2018-04-10T17:31:14Z
Assigned to
No Owner
Creator
Walter Bright

Comments

Comment #0 by bugzilla — 2018-04-06T04:48:52Z
The following fails to compile, but should pass: struct S { this(char); this(int j) { this('a'); assert(0); this('b'); // error: multiple constructor calls } }
Comment #1 by bugzilla — 2018-04-06T04:53:52Z
Comment #2 by github-bugzilla — 2018-04-10T17:31:13Z
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/88f48d698e19da62c0246e7f74e60477a4804ee6 fix Issue 18737 - An assert(0) should be a leaf in constructor flow analysis https://github.com/dlang/dmd/commit/e84c0a07e61a6317c4de74fe072c7387fa411e1a Merge pull request #8144 from WalterBright/fix18737 fix Issue 18737 - An assert(0) should be a leaf in constructor flow a… merged-on-behalf-of: Razvan Nitu <[email protected]>