www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11062] New: inline ice with alias this and opIndexAssign

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

           Summary: inline ice with alias this and opIndexAssign
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: ice
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: code dawg.eu



cat > bug.d << CODE
struct InetHeaderMap
{
    void opIndexAssign(string val, string key)
    {
    }
}

struct HTTPServerResponse
{
    InetHeaderMap headers;
}

struct FreeListRef
{
    private HTTPServerResponse m_object;
     property HTTPServerResponse get() { return m_object; }
    alias get this;
}

void foo()
{
    auto res = FreeListRef();
    res.headers.opIndexAssign("bar", "foo"); // OK
    res.headers["foo"] = "bar"; // Bug
}
CODE

dmd -c -inline bug.d
----
DMD v2.064-devel-9a32118 DEBUG
Internal error: backend/symbol.c 1036
----

The bug triggers the assertion 'assert(s->Ssymnum == -1);' in
backend/symbol.c(symbol_add).

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 18 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11062


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull




[snip]
 
 dmd -c -inline bug.d
 ----
 DMD v2.064-devel-9a32118 DEBUG
 Internal error: backend/symbol.c 1036
 ----
 
 The bug triggers the assertion 'assert(s->Ssymnum == -1);' in
 backend/symbol.c(symbol_add).
Introduced by: https://github.com/D-Programming-Language/dmd/commit/33ce37d6495aad7a3d6644392cf47e1af9d9d493 Compiler fix: https://github.com/D-Programming-Language/dmd/pull/2576 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 20 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11062




Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/1f5c1434485ed29b4b17a5b548503e164d52e09c
fix Issue 11062 - inline ice with alias this and opIndexAssign

https://github.com/D-Programming-Language/dmd/commit/9eb97f78f59d28ddfc5ea8430d2f2fc0f9c06f7d


[REG2.06a] Issue 11062 - inline ice with alias this and opIndexAssign

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 20 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11062


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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