www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18445] New: [DIP25] Unreproducible/wrong "return as a


          Issue ID: 18445
           Summary: [DIP25] Unreproducible/wrong "return as a parameter
                    attribute" inference
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Keywords: rejects-valid, safe, spec
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: chilli posteo.net
            Blocks: 18444

Example from phobos (-dip1000, DMD64 D Compiler v2.078.2+/master):

make -f posix.mak std/container/slist.test (-dip1000 switch for that module)

std/container/slist.d(378) [referring to struct SList(T). size_t
insertFront(Stuff)(Stuff stuff)]: Error: parameter stuff is return but function
does not return any indirections

No error, when -dip25 switch is thrown instead.

Referenced Issues:

[Issue 18444] [DIP25][DIP1000] Tracking issue for: "The implementation doesn't
match DIPs 25/1000"
Feb 15 2018