[Issue 23354] New: [REG master] object.d(393): Error: reference to stack allocated value returned by 'new F(1)' assigned to non-scope parameter 'lhs'

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Sep 21 15:43:59 UTC 2022


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

          Issue ID: 23354
           Summary: [REG master] object.d(393): Error: reference to stack
                    allocated value returned by 'new F(1)' assigned to
                    non-scope parameter 'lhs'
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: ibuclaw at gdcproject.org

$ dmd druntime/src/object.d -o- -unittest -preview=dip1000
druntime/src/object.d(393): Error: reference to stack allocated value returned
by `new F(1)` assigned to non-scope parameter `lhs`
druntime/src/object.d(393): Error: reference to stack allocated value returned
by `new G(1)` assigned to non-scope parameter `rhs`

Caused by https://github.com/dlang/dmd/pull/14367

--


More information about the Digitalmars-d-bugs mailing list