Thread overview
[Issue 9536] New: IFTI fails when calling a static member from const member
Feb 19, 2013
Nils
Feb 22, 2013
Kenji Hara
Feb 25, 2013
Kenji Hara
February 19, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9536

           Summary: IFTI fails when calling a static member from const
                    member
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: nilsbossung@googlemail.com


--- Comment #0 from Nils <nilsbossung@googlemail.com> 2013-02-19 09:37:47 PST ---
---
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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 22, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9536


Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull, rejects-valid
            Version|unspecified                 |D2


--- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2013-02-22 00:42:38 PST ---
https://github.com/D-Programming-Language/dmd/pull/1683

Introduced by:
----
Revision: 63dd3e18b32acaf31da81d91bbb10ea8b2aa0651
Author: Walter Bright <walter@walterbright.com>
Date: 2012/02/18 12:39:39
Message:
Merge pull request #715 from 9rnsr/fix6738

fix issue 6738 revisited

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 24, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9536



--- Comment #2 from github-bugzilla@puremagic.com 2013-02-24 14:07:38 PST ---
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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 24, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9536



--- Comment #3 from github-bugzilla@puremagic.com 2013-02-24 14:11:32 PST ---
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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 25, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9536


Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------