www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15235] New: inline asm: silent ICE (segfault) in asm_add_exp()


          Issue ID: 15235
           Summary: inline asm: silent ICE (segfault) in asm_add_exp()
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: anoneuron gmail.com

See: http://dpaste.dzfl.pl/701f26f64385

(in case dpaste is offline:)

This statement:
    asm {mov [EBP - (0 - 0)], EAX;};
crashes DMD with no error message.

The crash is an access violation in asm_add_exp():
    Line 3953: o2 = asm_mul_exp(); // o2 is now null
    Line 3960: o2->disp = - o2->disp; // segfault

Oct 22 2015