Bug 14248 – CodeView: debug info for return type of ref return function

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
Windows
Creation time
2015-03-05T07:46:21Z
Last change time
2024-12-13T18:40:48Z
Keywords
DebugInfo
Assigned to
No Owner
Creator
callumenator
Moved to GitHub: dmd#18950 →

Comments

Comment #0 by callumenator — 2015-03-05T07:46:21Z
Given: 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 function. 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?
Comment #1 by r.sagitario — 2019-08-24T06:51:27Z
Still valid, also for x64: *** SYMBOLS (000044) S_GPROC32: [0000:00000000], Cb: 0000001B, Type: 0x1001, refret.foo *** TYPES 0x1001 : Length = 14, Leaf = 0x1008 LF_PROCEDURE Return type = T_INT4(0074), Call type = Pascal Near Func attr = none # Parms = 0, Arg list type = 0x1000
Comment #2 by robert.schadek — 2024-12-13T18:40:48Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18950 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB