[Issue 16627] New: [Reg 2.072] struct with disabled postblit field is now nested

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Oct 19 16:11:59 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=16627

          Issue ID: 16627
           Summary: [Reg 2.072] struct with disabled postblit field is now
                    nested
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: code at dawg.eu

cat > bug.d << CODE
void bug(A...)(ref A args)
{
    struct S { A expand; } // no references
    static assert(!__traits(isNested, S)); // suddenly nested
}

struct SNoCopy
{
    @disable this(this);
}

void test()
{
    SNoCopy itm;
    bug(itm);
}
CODE
dmd -c bug
----

Apparently caused by https://github.com/dlang/dmd/pull/5500.

--


More information about the Digitalmars-d-bugs mailing list