[Issue 9438] Strange RefCounted stack overflow

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Feb 1 12:56:05 PST 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9438



--- Comment #7 from Maxim Fomin <maxim at maxim-fomin.ru> 2013-02-01 12:56:04 PST ---
Reduced for linux

struct RefCounted
{
    void *p;
    ~this()
    {
        p = null;
    }
}

struct S
{
  RefCounted _data;

  int get() @property
  {
      throw new Exception("");
  }
}

void main()
{
      S s;
      S().get;    
}

With -g it throws, without -g segfaults.

-- 
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