[Issue 6705] Bad codegen when passing fields as template alias params

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Feb 12 12:13:23 PST 2012


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


Stewart Gordon <smjg at iname.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid, wrong-code
                 CC|                            |smjg at iname.com


--- Comment #1 from Stewart Gordon <smjg at iname.com> 2012-02-12 12:13:22 PST ---
>From what I can make out, the code is valid - a class member falls under "any
type of D symbol", and func!anything is just an int(int) function.

For me (2.057 Win32), the given code throws an AV at runtime (wrong-code). 
Reinstating the commented out line gives

C:\Users\Stewart\Documents\Programming\D\Tests\bugs>dmd bz6705.d
bz6705.d(15): Error: need 'this' to access member func
(rejects-valid)

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