[Issue 4141] New: unary ++ (post increment) invokes opBinary
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat May 1 16:22:38 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4141
Summary: unary ++ (post increment) invokes opBinary
Product: D
Version: unspecified
Platform: x86
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: k-foley at onu.edu
--- Comment #0 from Kyle Foley <k-foley at onu.edu> 2010-05-01 16:22:37 PDT ---
DMD 2.043
struct A
{
int _;
void opBinary(string op, U)(U rhs) { pragma(msg, op); }
}
auto a = A(42);
a++;
---
$ rdmd opbugs.d
++
opbugs.d(10): Error: template opbugs.main.A.opBinary(string op,U) does not
match any function template declaration
opbugs.d(10): Error: template opbugs.main.A.opBinary(string op,U) cannot deduce
template function from argument types !()()
--
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