[Issue 1454] IFTI cant deduce parameter if alias argument used

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jan 29 14:34:14 PST 2008


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





------- Comment #2 from burton-radons at shaw.ca  2008-01-29 16:34 -------
Here's a simpler example showing what appears to be the same problem:

        template A (T)
        {
                alias T A;
        }

        void func (T) (A! (T) a)
        {
        }

        void main ()
        {
                func (4);
        }

This fails compilation in DMD 1.026 with:

        template d.array.func(T) does not match any template declaration
        template d.array.func(T) cannot deduce template function from argument
types (int)

There is no workaround, this is bad!


-- 



More information about the Digitalmars-d-bugs mailing list