[Issue 2594] New: Const/immutable should not matter for value types in IFTI

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jan 19 09:28:08 PST 2009


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

           Summary: Const/immutable should not matter for value types in
                    IFTI
           Product: D
           Version: 2.023
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: dsimcha at yahoo.com


void main() {
    immutable uint a;
    uint b;
    foo(a, b);
}

void foo(T)(T lhs, T rhs) {}

Compile time errors:

template test6.foo(T) does not match any function template declaration
template test6.foo(T) cannot deduce template function from argument types
!()(immutable(uint),uint)|


-- 



More information about the Digitalmars-d-bugs mailing list