www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12907] New: [ICE] Assertion failure '0' in 'mangle.c' when

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

          Issue ID: 12907
           Summary: [ICE] Assertion failure '0' in 'mangle.c' when using
                    `auto` return type with lambda with dereferanced
                    `function` call
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: ice
          Severity: major
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: verylonglogin.reg gmail.com

This code should compile:
---
auto f(void function() g)
{
    return x => (*g)();
}
---

--
Jun 13 2014