[Issue 3524] "Internal error: e2ir.c 725", after scoped error and processing inrevelant file.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Nov 18 20:40:54 PST 2009


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



--- Comment #2 from Witold Baryluk <baryluk at smp.if.uj.edu.pl> 2009-11-18 20:40:53 PST ---
slightly smaller file1.d:

file1.d:
--------
class E {}

class F(alias s) {
    void zz() {
        s.toHash();
    }
}


void main() {
    scope e = new E(); // line 11
    auto f = new F!(e)();
}
--------

$ dmd2 file1.d file2.d
file1.d(11): Error: variable file1.main.e has scoped destruction, cannot build
closure
Internal error: e2ir.c 725
$

-- 
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