[Issue 20969] alias to local in static instance of a struct causes segfault

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jun 22 11:31:38 UTC 2020


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

Stefan Koch <uplink.coder at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |uplink.coder at gmail.com

--- Comment #1 from Stefan Koch <uplink.coder at gmail.com> ---
I Assume: 
  this happens because `a` is a local t the frame of main.
  when s.bar is called it uses the same offset but in the frame of bar.

My first solution would be to make it an error.

--


More information about the Digitalmars-d-bugs mailing list