[Issue 18737] New: An assert(0) should be a leaf in constructor flow analysis

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Apr 6 04:48:52 UTC 2018


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 at puremagic.com
          Reporter: bugzilla at 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
    }
}

--


More information about the Digitalmars-d-bugs mailing list