[Issue 5270] Using a scope delegate allows memory corruption in safe mode
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jan 24 07:38:18 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=5270
timon.gehr at gmx.ch changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
CC| |timon.gehr at gmx.ch
Resolution|WORKSFORME |
--- Comment #2 from timon.gehr at gmx.ch 2012-01-24 07:38:16 PST ---
The issue is that "it compiles and runs without error". (the second assertion
asserts that there is memory corruption) The compiler has to either:
- enforce the 'scope' storage class in @safe mode by flow-analysis.
- not perform the scope delegate optimization in @safe mode.
Change the second assertion to 'assert (x == 123);' to see the error.
--
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