www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11264] New: dmd crash with variadic lambda

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11264

           Summary: dmd crash with variadic lambda
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: bearophile_hugs eml.cc



This program causes me a crash, I don't know why (dmd 2.064beta1):


void main() {
    static foo = (int[] x...) => 0;
    foo();
}


A similar problem:

import std.typecons: Tuple;
void main() {
    alias Foo = Tuple!(int);
    static bar = (Foo x) => 0;
    bar(Foo());
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 14 2013
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11264


Maxim Fomin <maxim maxim-fomin.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice
                 CC|                            |maxim maxim-fomin.ru
           Platform|x86                         |All
         OS/Version|Windows                     |All



---
In 2.064 beta it gives:

Internal error: backend/symbol.c 1017

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 15 2013