[Issue 307] New: Inline assembler function call

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Aug 23 00:07:02 PDT 2006


http://d.puremagic.com/issues/show_bug.cgi?id=307

           Summary: Inline assembler function call
           Product: GDC
           Version: 0.19
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: glue layer
        AssignedTo: braddr at puremagic.com
        ReportedBy: m.faustino at gmail.com


Using inline assembler to make a function call makes the compiler generate a
segmentation fault:

//-----------------------------------------------
void main() {
  asm {
    call f;
  }
}

void f() {}
//-----------------------------------------------

With gdc 0.19, dmd 0.162 (gcc version 4.0.3).


-- 




More information about the D.gnu mailing list