[Issue 6896] New: ICE(glue.c !vthis->csym): on method with alias this access
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Nov 5 11:13:20 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6896
Summary: ICE(glue.c !vthis->csym): on method with alias this
access
Product: D
Version: D2
Platform: Other
OS/Version: All
Status: NEW
Keywords: ice-on-valid-code
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: dawg at dawgfoto.de
--- Comment #0 from dawg at dawgfoto.de 2011-11-05 11:12:46 PDT ---
// REQUIRED_ARGS: -inline
struct Nested
{
int _val;
}
struct S
{
Nested _nested;
alias _nested this;
void set(int v)
{
assign(v);
}
void assign(int v)
{
_val = v;
}
}
----
Note that this does not happen when the definition of assign
comes lexically before set. So the issue appears to be an alias this
access when inlining a function that was forward referenced.
This is probably related to
http://d.puremagic.com/issues/show_bug.cgi?id=2962.
--
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