View Issue Details

IDProjectCategoryView StatusLast Update
0037766FPCCompilerpublic2020-09-17 22:29
ReporterBi0T1N Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version3.3.1 
Summary0037766: Implement ReturnAddress for raising exceptions
DescriptionFor Delphi compatibility (but also for simpler code in general) the following
raise Exception.Create('test') at ReturnAddress;

needs to be supported. It can already be achieved by using
raise Exception.Create('test') at get_caller_addr(get_frame), get_caller_frame(get_frame);
Additional Informationhttps://forum.lazarus.freepascal.org/index.php/topic,38153.0.html
https://stackoverflow.com/questions/30417218/undocumented-intrinsic-routines
https://chuacw.ath.cx/development/b/chuacw/archive/2014/05/30/undocumented-delphi-routines.aspx
https://stackoverflow.com/questions/8950513/what-does-at-returnaddress-mean-in-delphi
TagsNo tags attached.
Fixed in Revision
FPCOldBugId
FPCTarget
Attached Files

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2020-09-17 22:29 Bi0T1N New Issue