[Issue 9114] New: Can't call varadic template function with partly specified template parameters

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Dec 5 10:46:43 PST 2012


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

           Summary: Can't call varadic template function with partly
                    specified template parameters
           Product: D
           Version: D1
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: mathias.baumann at sociomantic.com


--- Comment #0 from Mathias Baumann <mathias.baumann at sociomantic.com> 2012-12-05 10:46:41 PST ---
The test case:

module main;

void test ( int a, Args...) ( Args args ){}

void main ( char[][] arg)
{
    test!(5)(3);
}

The error:

main.d(7): Error: function main.test!(5).test (() args) does not match
parameter types (int)
main.d(7): Error: expected 0 arguments, not 1 for non-variadic function type
void(() args)


In D2 this compiles without problem.

-- 
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