http://d.puremagic.com/issues/show_bug.cgi?id=8360
Summary: Destruction of uninitialized temporary struct with
assert
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Benjamin Thaut <[email protected]> 2012-07-08 06:39:10
PDT ---
Created an attachment (id=1123)
repro case
When a temporary struct is used as the second argument to assert, and the
assert is false, the temporary struct gets destructed despite the fact that it
was never actually constructed. See attached repro case.
Tested with dmd 2.058 and dmd.2059
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------