[Issue 814] lazy argument + variadic arguments = segfault
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jul 20 08:03:57 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=814
Don <clugdbug at yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
--- Comment #4 from Don <clugdbug at yahoo.com.au> 2009-07-20 08:03:56 PDT ---
PATCH: func.c, line 1211. Need to account for a lazy last parameter.
- offset = p->type->size();
+ if (p->storage_class & STClazy) {
+ // If the last parameter is lazy, it's the size of a delegate
+ offset = sizeof(int(*)(int)) + sizeof(void *);
+ } else {
+ offset = p->type->size();
+ }
--
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