[Issue 9536] New: IFTI fails when calling a static member from const member
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Feb 19 09:37:49 PST 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 at puremagic.com
ReportedBy: nilsbossung at googlemail.com
--- Comment #0 from Nils <nilsbossung at 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: -------
More information about the Digitalmars-d-bugs
mailing list