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
}
}