www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 6764] New: IFTI fails on typesafe variadic function over static array with non IntegerLiteral length

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6764

           Summary: IFTI fails on typesafe variadic function over static
                    array with non IntegerLiteral length
           Product: D
           Version: D1 & D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: minor
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: verylonglogin.reg gmail.com



---
---
enum N = 1; //use const for D1

alias size_t[N] T; //workaround
void f()(T arr...) { }

void g()(size_t[1] arr...) { }

void h()(size_t[N] arr...) { }

void main()
{
    f(0);    //good
    g(0);    //good
    h!()(0); //good
    h(0);    //Error: template main.f() does not match any function template
declaration
}
---

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 03 2011
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6764


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch, rejects-valid



https://github.com/D-Programming-Language/dmd/pull/431

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 04 2011
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6764




Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/ef9c344118925cb362be0fe14a18590556e7c9dd
Issue 6764 - IFTI fails on typesafe variadic function over static array with
non IntegerLiteral length

https://github.com/D-Programming-Language/dmd/commit/a5c56ac957035efc142ad4a1123c6b138f1e4a15


Issue 2296 & 6764 - IFTI fails on typesafe variadic function

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 28 2012
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6764


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|D1 & D2                     |D1



Fixed in D2.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 10 2012