← Back to index
|
Original Bugzilla link
Bug 15653 – IFTI fails for immutable parameter
Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-02-07T22:51:34Z
Last change time
2018-03-11T21:41:00Z
Keywords
pull
Assigned to
No Owner
Creator
John Colvin
Comments
Comment #0
by john.loughran.colvin — 2016-02-07T22:51:34Z
% cat test.d void foo(T)(const T x) {} void bar(T)(immutable T x) {} void main() { foo(4); // OK bar(4); // Error } % dmd test.d test.d(8): Error: template test.bar cannot deduce function from argument types !()(int), candidates are: test.d(3): test.bar(T)(immutable T x)
Comment #1
by k.hara.pg — 2016-02-14T06:13:45Z
https://github.com/D-Programming-Language/dmd/pull/5452
Comment #2
by github-bugzilla — 2018-03-11T21:40:59Z
Commits pushed to master at
https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/d68e181bda060f8e61253620695a3aadf0ad1093
Fix issue 15653 - IFTI fails for immutable parameter
https://github.com/dlang/dmd/commit/5fa45d1a355b5bd24caaeddf71b21d94561c3174
Add links to bugzilla for issue 15653
https://github.com/dlang/dmd/commit/25fbcbe2baaf085e679bc281954b208e076d7471
Merge pull request #7977 from JinShil/fix_15653 Fix issue 15653 - IFTI fails for immutable parameter merged-on-behalf-of: Sebastian Wilzbach <
[email protected]
>