https://d.puremagic.com/issues/show_bug.cgi?id=12226
Summary: functions can return local stack-allocated objects by
reference
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: accepts-invalid, diagnostic
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from [email protected] 2014-02-22 12:25:43 PST ---
An auto ref function can return a local stack-allocated struct by reference
causing undefined behavior when executed.
Sample code: http://pastebin.com/rvcNdjAE
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------