[Issue 23012] New: importC: asm label to set symbol name not applied from forward declaration

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Apr 13 16:35:16 UTC 2022


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

          Issue ID: 23012
           Summary: importC: asm label to set symbol name not applied from
                    forward declaration
           Product: D
           Version: D2
          Hardware: All
                OS: Linux
            Status: NEW
          Keywords: ImportC
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: duser at neet.fi
                CC: duser at neet.fi

void fn() asm("test1");
void fn(){}

extern int xs[] asm("test2");
int xs[1];

compile and list the names with something like: dmd -c test.c && nm test.o

they use the asm names with gcc but not with dmd

--


More information about the Digitalmars-d-bugs mailing list