[Issue 1678] ref with varargs generates invalid code
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jul 24 22:33:35 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=1678
Don <clugdbug at yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |clugdbug at yahoo.com.au
--- Comment #6 from Don <clugdbug at yahoo.com.au> 2010-07-24 22:30:56 PDT ---
This also applies to 'out' parameters, as well as 'ref'.
The problem is in func.c, FuncDeclaration::semantic3(), around line 1380, where
__argptr is created. It's set equal to (&p + offset), where p is the last
non-variadic parameter. This fails if p is a reference -- it gives the address
of the thing p is pointing to.
--
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