www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15239] New: ICE (assertion failure) in

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

          Issue ID: 15239
           Summary: ICE (assertion failure) in ctfeInterpret() —
                    opDispatch & inline asm
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: anoneuron gmail.com

http://dpaste.dzfl.pl/b8c580346198
Tested in DMD v2.068.2

(in case dpaste is offline:)

Code:
    struct T {
        template opDispatch(string Name, P...) {
            static void opDispatch(P) {};
        };
    };

    void main() {
        asm {
            call T.foo;
        };
    };

Output:
    dmd: interpret.c:731: Expression* ctfeInterpret(Expression*): Assertion
`e->type' failed.

--
Oct 22 2015