digitalmars.D.bugs - [Issue 18737] New: An assert(0) should be a leaf in constructor flow
- d-bugmail puremagic.com (26/26) Apr 05 2018 https://issues.dlang.org/show_bug.cgi?id=18737
https://issues.dlang.org/show_bug.cgi?id=18737 Issue ID: 18737 Summary: An assert(0) should be a leaf in constructor flow analysis Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: bugzilla digitalmars.com 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 } } --
Apr 05 2018