Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Ticket #1029 (closed defect: fixed)

Opened 16 years ago

Last modified 16 years ago

x86_64 Layout.d doesn't compile

Reported by: fvbommel Assigned to: larsivi
Priority: major Milestone: 0.99.6
Component: IO Version: trunk
Keywords: Cc:

Description

Revision [3420] doesn't compile on x86_64 GDC. Specifically, the change from arglist[i] = args.ptr; to arglist[i] = args; produces the following error:

<...>/tango/text/convert/Layout.d:198: Error: cannot implicitly convert expression (args) of type __va_list_tag [1LU] to void*

Perhaps the old line should be in a version(X86_64) block if other architectures require the new variant? Or perhaps a "static if (is(typeof(args.ptr)))" block to catch other archs that need the .ptr?

Change History

04/08/08 23:36:43 changed by kris

  • owner changed from kris to larsivi.

reassigning to larsivi

04/09/08 17:07:15 changed by larsivi

  • status changed from new to closed.
  • resolution set to fixed.

(In [3422]) Sometimes args is a pointer, sometimes not. closes #1029, and yes, GDC sucks at varargs.

04/09/08 21:29:14 changed by larsivi

(In [3426]) Really fix some GDC suckage, refs #1029