Bug 11146 – Wrong line number of "identity assignment operator overload is illegal"
Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-09-30T00:30:00Z
Last change time
2013-09-30T05:55:57Z
Keywords
diagnostic, pull
Assigned to
nobody
Creator
k.hara.pg
Comments
Comment #0 by k.hara.pg — 2013-09-30T00:30:59Z
From fail_compilation/class1.d:
class C // Line 1
{
// Non-templated identity opAssign
void opAssign(C rhs){} // Line 4
}
Prints:
test.d(1): Error: class test.C identity assignment operator overload is illegal
But it should print:
test.d(4): Error: class test.C identity assignment operator overload is illegal