Bug 13351 – IFTI for `in` parameter doesn't strip const

Status
RESOLVED
Resolution
DUPLICATE
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-08-22T02:26:00Z
Last change time
2014-08-22T22:27:32Z
Assigned to
nobody
Creator
safety0ff.bugz

Comments

Comment #0 by safety0ff.bugz — 2014-08-22T02:26:06Z
///////////// test.d ///////////// T add(T)(in T x, in T y) { T z; z = x + y; return z; } void main() { const double a = 1.0; const double b = 2.0; double c; c = add(a,b); } ////////////////////////////////// Introduced in 2.066 beta 6 Digger output: b757a099a65cc66ed5cbb8f84468e5bd924f5d3a is the first bad commit commit b757a099a65cc66ed5cbb8f84468e5bd924f5d3a Author: Hara Kenji <[email protected]> Date: Thu Jul 24 00:35:33 2014 +0900 dmd: Merge pull request #3804 from 9rnsr/2.066 https://github.com/D-Programming-Language/dmd/pull/3804 Cherry-picking commits from master to 2.066 branch (for beta6)
Comment #1 by safety0ff.bugz — 2014-08-22T02:34:19Z
Comment #2 by paul.d.anderson — 2014-08-22T22:27:32Z
Seems to be the same problem as 13294. *** This issue has been marked as a duplicate of issue 13294 ***