[Issue 5754] ICE(glue.c): using nested delegate literal as template alias parameter

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Dec 14 16:24:13 PST 2012


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


bearophile_hugs at eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |regression


--- Comment #6 from bearophile_hugs at eml.cc 2012-12-14 16:23:59 PST ---
(In reply to comment #4)
> Compiles and runs with 2.059 Win32

Yes, both cases now compile. But I have found a way to trigger the same error.

First module, named "module1.d":


import std.stdio;
import module2;
void main() {}



Second module, named "module2.d":


import std.algorithm: reduce;
struct Foo {
    string bar() {
        auto spam = (string s, int) => "";
        return reduce!spam("", [1]);
    }
}



It generates, dmd 2.061alpha:

Assertion failure: '!vthis->csym' on line 787 in file 'glue.c'

Since you say this used to work before, it's now a regression.

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


More information about the Digitalmars-d-bugs mailing list