www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12464] New: DMD/Phobos cannot auto-implement D variadic methods

https://d.puremagic.com/issues/show_bug.cgi?id=12464

           Summary: DMD/Phobos cannot auto-implement D variadic methods
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: Marco.Leise gmx.de


--- Comment #0 from Marco Leise <Marco.Leise gmx.de> 2014-03-25 07:29:58 PDT ---
Affects at least 2.064.2 and 2.065.

This code:
---------------------------
import std.stream;
import std.typecons;
BlackHole!OutputStream dout;
---------------------------

fails on 2.064.2 with:
---------------------------
/opt/dmd-2.064/import/std/typecons.d(2225): Error: '__va_argsave_t' is not
defined, perhaps you need to import core.vararg; ?
/opt/dmd-2.064/import/std/typecons.d(2225): Error: function
std.typecons.AutoImplement!(OutputStream, generateEmptyFunction,
isAbstractFunction).AutoImplement.printf must import core.vararg to use
variadic functions
/opt/dmd-2.064/import/std/typecons.d(2233): Error: '__va_argsave_t' is not
defined, perhaps you need to import core.vararg; ?
/opt/dmd-2.064/import/std/typecons.d(2233): Error: function
std.typecons.AutoImplement!(OutputStream, generateEmptyFunction,
isAbstractFunction).AutoImplement.writef must import core.vararg to use
variadic functions
/opt/dmd-2.064/import/std/typecons.d(2241): Error: '__va_argsave_t' is not
defined, perhaps you need to import core.vararg; ?
/opt/dmd-2.064/import/std/typecons.d(2241): Error: function
std.typecons.AutoImplement!(OutputStream, generateEmptyFunction,
isAbstractFunction).AutoImplement.writefln must import core.vararg to use
variadic functions
---------------------------

and on 2.065 with:
---------------------------
/opt/dmd-2.065/import/std/typecons.d-mixin-2074(2258): Error: '__va_argsave_t'
is not defined, perhaps you need to import core.vararg; ?
/opt/dmd-2.065/import/std/typecons.d-mixin-2074(2258): Error: function
std.typecons.AutoImplement!(OutputStream, generateEmptyFunction,
isAbstractFunction).AutoImplement.printf must import core.vararg to use
variadic functions
/opt/dmd-2.065/import/std/typecons.d-mixin-2074(2266): Error: '__va_argsave_t'
is not defined, perhaps you need to import core.vararg; ?
/opt/dmd-2.065/import/std/typecons.d-mixin-2074(2266): Error: function
std.typecons.AutoImplement!(OutputStream, generateEmptyFunction,
isAbstractFunction).AutoImplement.writef must import core.vararg to use
variadic functions
/opt/dmd-2.065/import/std/typecons.d-mixin-2074(2274): Error: '__va_argsave_t'
is not defined, perhaps you need to import core.vararg; ?
/opt/dmd-2.065/import/std/typecons.d-mixin-2074(2274): Error: function
std.typecons.AutoImplement!(OutputStream, generateEmptyFunction,
isAbstractFunction).AutoImplement.writefln must import core.vararg to use
variadic functions
---------------------------

It compiles with GDC and LDC though.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 25 2014