[Issue 20137] A program crashes at runtime (should be compile error)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Aug 19 12:30:11 UTC 2019


https://issues.dlang.org/show_bug.cgi?id=20137

RazvanN <razvan.nitu1305 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |razvan.nitu1305 at gmail.com
          Component|dmd                         |phobos

--- Comment #1 from RazvanN <razvan.nitu1305 at gmail.com> ---
I'm not sure this is a bug. Even if it is, it is not a dmd one. `scoped` is
implemented as a template function that returns a `struct Scoped`. `struct
Scoped` has an alias this to the class instance and it somehow gets messed up.
I suspect this is due to an internal bug in scoped.

--


More information about the Digitalmars-d-bugs mailing list