[Issue 24184] New: [REG 2.103] Segmentation fault accessing variable with align(N) > platform stack alignment
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Wed Oct 11 16:02:18 UTC 2023
    
    
  
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 at puremagic.com
          Reporter: ibuclaw at 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(); }
--
    
    
More information about the Digitalmars-d-bugs
mailing list