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