[Issue 7522] ICE(interpret.c) Accessing a non-static member without this

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Apr 20 02:47:08 PDT 2012


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



--- Comment #7 from Don <clugdbug at yahoo.com.au> 2012-04-20 02:48:04 PDT ---
(In reply to comment #5)
> (In reply to comment #4)
> > In 2.059 Win32
> > 
> > PS E:\DigitalMars\dmd2\samples> dmd bug.d
> > bug.d(9): Error: need 'this' to access member a
> > PS E:\DigitalMars\dmd2\samples>
> 
> That's odd, I still get the assertion failure with 2.060 head. (now on line
> 103)
> Were you using the exact code in the original comment?
> 
> Chances are this is a bug where something that should be dealt with during
> semantic is dealt with in the glue layer.  Probably getRightThis and friends in
> e2ir.c.

Exactly. There's still a fair number of those guys, they cause a lot of
problems for CTFE, and they also make it hard for GDC/LDC since they need to
generate those errors too.

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