Thread overview
[Issue 756] New: IFTI for tuples only works if tuple parameter is last
Dec 27, 2006
d-bugmail
Jan 01, 2007
d-bugmail
Sep 18, 2007
d-bugmail
Mar 07, 2008
d-bugmail
December 27, 2006
http://d.puremagic.com/issues/show_bug.cgi?id=756

           Summary: IFTI for tuples only works if tuple parameter is last
           Product: D
           Version: 0.178
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: kamm@incasoftware.de


The spec does not seem to require that tuple parameters are the last parameter in the list, but this doesn't work:

void foo(U...)(int t, U u) { }
void bar(U...)(U u, int t) { }

void main()
{
  foo(1, 2, 3);  // Ok, IFTI works
  bar(1, 2, 3);  // error: cannot deduce template function from argument types
(int,int,int)
  bar!(int, int)(1, 2, 3);  // Ok.
}


-- 

January 01, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=756





------- Comment #1 from thomas-dloop@kuehne.cn  2007-01-01 10:35 -------
This seems to be a root cause for quite a few recent bug reports.

Added to DStress as http://dstress.kuehne.cn/run/t/tuple_13_A.d http://dstress.kuehne.cn/run/t/tuple_13_B.d http://dstress.kuehne.cn/run/t/tuple_13_C.d


-- 

September 18, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=756


smjg@iname.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smjg@iname.com
           Keywords|                            |rejects-valid




------- Comment #2 from smjg@iname.com  2007-09-18 16:22 -------
Please remember to assign keywords to bug reports.  To everybody reading this: Please look through issues you've reported and check for missing keywords.


-- 

March 07, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=756


bugzilla@digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #3 from bugzilla@digitalmars.com  2008-03-07 00:19 -------
Fixed dmd 1.028 and 2.012


--