www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22084] New: [REG 2.097] Segmentation fault passing non-pod

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

          Issue ID: 22084
           Summary: [REG 2.097] Segmentation fault passing non-pod struct
                    as variadic argument
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: ibuclaw gdcproject.org

The fix for Issue 21880 caused a regression:
---
import core.stdc.stdarg;
extern(C++) void testVariadic(int a, ...)
{
}
struct Destructor
{
    ~this() { }
}
void test()
{
    auto a0 = Destructor;
    testVariadic(1, a0);
}

--
Jun 26