[Issue 11062] New: inline ice with alias this and opIndexAssign
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Sep 18 03:53:56 PDT 2013
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 at puremagic.com
ReportedBy: code at dawg.eu
--- Comment #0 from Martin Nowak <code at dawg.eu> 2013-09-18 03:53:54 PDT ---
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: -------
More information about the Digitalmars-d-bugs
mailing list