Bug 2594 – Const/immutable should not matter for value types in IFTI

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2009-01-19T11:28:00Z
Last change time
2015-06-09T01:21:01Z
Keywords
rejects-valid
Assigned to
nobody
Creator
dsimcha

Comments

Comment #0 by dsimcha — 2009-01-19T11:28:08Z
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)|
Comment #1 by dsimcha — 2010-09-02T13:11:09Z
*** Issue 4594 has been marked as a duplicate of this issue. ***
Comment #2 by simen.kjaras — 2011-03-15T10:21:30Z
*** This issue has been marked as a duplicate of issue 2128 ***