www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22471] New: DWARF: generated main is not marked as

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

          Issue ID: 22471
           Summary: DWARF: generated main is not marked as
                    DW_AT_artificial
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: contact lsferreira.net

According to DWARF standard:
 Any debugging information entry representing the declaration of an object or
 type artificially generated by a compiler and not explicitly declared by the
source
 program may have a DW_AT_artificial attribute, which is a flag.
This is the case when `-main` flag is passed to the compiler. --
Nov 03 2021