https://issues.dlang.org/show_bug.cgi?id=20137
anonymous4 <dfj1es...@sneakemail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |safe Status|NEW |RESOLVED Hardware|x86_64 |All Resolution|--- |INVALID OS|Linux |All --- Comment #2 from anonymous4 <dfj1es...@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. --