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.