[Issue 8360] New: Destruction of uninitialized temporary struct with assert
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jul 8 06:39:12 PDT 2012
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: nobody at puremagic.com
ReportedBy: code at benjamin-thaut.de
--- Comment #0 from Benjamin Thaut <code at benjamin-thaut.de> 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: -------
More information about the Digitalmars-d-bugs
mailing list