[Issue 1066] Variadic arguments being passed in registers

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Mar 18 15:41:28 PDT 2007


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


fvbommel at wxs.nl changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fvbommel at wxs.nl




------- Comment #1 from fvbommel at wxs.nl  2007-03-18 17:41 -------
I just found out that gphobos also suffers because of this.
std/format.d, line 897+:
---
else version(X86_64)
{
    throw new FormatError("cannot portably format a struct on this target");
}
---
This seems to be because it can't obtain a pointer to the struct to pass to
TypeInfo_Struct.xtoString(void*)...

This _really_ needs to be fixed. Neither of gphobos and tango can fully support
their respective formatted text output facilities on amd64 (and any similar
platforms, presumably) because of this.

(workaround for gphobos: explicitly calling .toString on arguments)


-- 



More information about the D.gnu mailing list