www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 24184] New: [REG 2.103] Segmentation fault accessing variable

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

          Issue ID: 24184
           Summary: [REG 2.103] Segmentation fault accessing variable with
                    align(N) > platform stack alignment
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: ibuclaw gdcproject.org

void stage3(alias dg)(ubyte[])
{
    bool skipSpaces()
    {
        dg();
        return false;
    }
    skipSpaces;
}
ubyte[] singleThreadJsonImpl(alias dg)(ubyte[] table)
{
    align(64) ubyte[] vector;
    stage3!(() => vector)(table);
    return table;
}
ubyte[] singleThreadJsonText()
{
    return singleThreadJsonImpl!(data => true)([]);
}
void deserializeJson() { singleThreadJsonText(); }
void main() { deserializeJson(); }

--
Oct 11 2023