www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 24558] New: C asserts segfault on Glibc

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

          Issue ID: 24558
           Summary: C asserts segfault on Glibc
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: connor-gh outlook.com

When running the minimal test case of ``extern(C) int main() {assert(0);}``,
dmd would segfault (this also applies to ldc2). 

Expected behavior: ``file: /home/user/file.d:2: file.main: Assertion `0'
failed.`` 

Observed behavior: ``Segmentation Fault``

--
May 22