[Issue 8023] (Regression git) Methods defined in external object files when template alias parameter is involved

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu May 3 04:20:53 PDT 2012


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



--- Comment #1 from Leandro Lucarella <leandro.lucarella at sociomantic.com> 2012-05-03 04:22:06 PDT ---
Add a test case for this bug. Even when is not reproducible in D2 right now,
maybe is a good idea to have the test case anyway so it doesn't fail in the
future as D1 does now.

https://github.com/D-Programming-Language/dmd/pull/922

This includes also this test case, which is also a regression and it's fixed by
the pull request. This testcase doesn't need -inline -release to be reproduced
though!

m1.d
---
module m1;

import m2;

private void t(alias Code)()
{
    return Code();
}

void f()
{
    t!( () { } )();
}

bool forceSemantic()
{
    f();
    return true;
}

static assert(forceSemantic());
---

m2.d
---
module m2;
import m1;
---

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