[Issue 8847] voldemort + inout confuses "is"

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Oct 18 02:30:02 PDT 2012


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


klickverbot <code at klickverbot.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |code at klickverbot.at


--- Comment #2 from klickverbot <code at klickverbot.at> 2012-10-18 02:29:59 PDT ---
This is probably the same issue I hit when merging the 2.060 frontend into LDC
a while ago. The issue is that the same type can end up with two different
mangled names, which causes two different TypeInfo instances to be emitted.

The test case from
https://github.com/ldc-developers/ldc/blob/master/gen/tocall.cpp#L677:

---
auto iota() {
    static struct Result {
        this(int) {}
        inout(Result) test() inout { return cast(inout)Result(0); }
    }
    return Result.init;
}
void main() { auto r = iota(); }
---

I'm not sure what the correct fix is here – Walter? Kenji?

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