Bug 9536 – IFTI fails when calling a static member from const member

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-02-19T09:37:00Z
Last change time
2013-02-25T04:56:43Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
nilsbossung

Comments

Comment #0 by nilsbossung — 2013-02-19T09:37:47Z
--- cat > test.d <<code struct S { static void x(A)(A a) { } void y() const { x(42); } } code dmd -c -o- test.d --- test.d(5): Error: template test.S.x does not match any function template declaration. Candidates are: test.d(2): test.S.x(A)(A a) test.d(5): Error: template test.S.x(A)(A a) cannot deduce template function from argument types !()(int) --- Fails since 2.059. I suspect that x is checked for const.
Comment #1 by k.hara.pg — 2013-02-22T00:42:38Z
https://github.com/D-Programming-Language/dmd/pull/1683 Introduced by: ---- Revision: 63dd3e18b32acaf31da81d91bbb10ea8b2aa0651 Author: Walter Bright <[email protected]> Date: 2012/02/18 12:39:39 Message: Merge pull request #715 from 9rnsr/fix6738 fix issue 6738 revisited
Comment #2 by github-bugzilla — 2013-02-24T14:07:38Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/ce87b314b5e0d3ae98bd22c765efa2c08f837514 fix Issue 9536 - IFTI fails when calling a static member from const member https://github.com/D-Programming-Language/dmd/commit/d8eeecf4cba19d9bb22fb146b9ba7f5ff41453e9 Merge pull request #1683 from 9rnsr/fix9536 [REG2.059] Issue 9536 - IFTI fails when calling a static member from const member
Comment #3 by github-bugzilla — 2013-02-24T14:11:32Z
Commit pushed to 2.062 at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/c39a398fa95a46044dd7a8f2aac8f03437de7d8d Merge pull request #1683 from 9rnsr/fix9536 [REG2.059] Issue 9536 - IFTI fails when calling a static member from const member