www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14248] New: CodeView: debug info for return type of ref


          Issue ID: 14248
           Summary: CodeView: debug info for return type of ref return
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: callumenator gmail.com


int x;
ref int foo() { return x; }

The win32 codeview debug information for foo's type has the return type as
'int', presumably because 'ref' is a storage class which applies to the

Does it make sense to propagate the refness of the function to the return type
when outputting debug info, as is done for the parameters?

Mar 04 2015