www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16590] New: Wrong di generation for ref methods

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

          Issue ID: 16590
           Summary: Wrong di generation for ref methods
           Product: D
           Version: D2
          Hardware: x86_64
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: satoshi rikarin.org

Hello,
I tried to create a static lib from phobos and druntime then generate header
files but I found some problems with it.

-H is stripping bodies from ref functions so return type cannot be deduced.
same for ref return functions.

exmaple from phobos/std/typecons.d
 property ref return T refCountedPayload();

--
Oct 04 2016