[Issue 20137] A program crashes at runtime (should be compile error)
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Aug 21 09:30:37 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=20137
anonymous4 <dfj1esp02 at sneakemail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |safe
Status|NEW |RESOLVED
Hardware|x86_64 |All
Resolution|--- |INVALID
OS|Linux |All
--- Comment #2 from anonymous4 <dfj1esp02 at sneakemail.com> ---
He assigns scoped to SoundCard, and scoped gets deallocated before next
statement. This is by design, mark main with @safe attribute to prevent this.
--
More information about the Digitalmars-d-bugs
mailing list