[Issue 17461] Bad codegen: compiler emit's call to destructor for uninitialised temporary
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Fri Jun  2 12:24:52 PDT 2017
    
    
  
https://issues.dlang.org/show_bug.cgi?id=17461
ag0aep6g at gmail.com changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ag0aep6g at gmail.com
--- Comment #4 from ag0aep6g at gmail.com ---
(In reply to uplink.coder from comment #2)
> with -O -inline it crashes in the dwarf-emission.
For that crash the code can be reduced to this:
----
void t()
{
  auto a = A(false ? B().p : null);
}
struct A
{
  void* p;
}
struct B
{
  void* p;
  ~this() {}
}
----
`dmd -c -O test.d` crashes with "Internal error: ddmd/backend/dwarfeh.c 205".
--
    
    
More information about the Digitalmars-d-bugs
mailing list