www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22590] New: importC: static functions have no debug


          Issue ID: 22590
           Summary: importC: static functions have no debug information
                    generated for them
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: ibuclaw gdcproject.org

When a SEGV occurs in a "C" static function, there's no debug information to
say what or why it occurred.

The workaround is to remove "static" from both declaration and definition.

Dec 12 2021