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
Comment #1 by k.hara.pg — 2013-09-30T00:34:19Z
Comment #2 by github-bugzilla — 2013-09-30T05:55:48Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/ddceb6ae9d73ce12e4ced9263931853a1e294f12 fix Issue 11146 - Wrong line number of "identity assignment operator overload is illegal" https://github.com/D-Programming-Language/dmd/commit/8d20595ec756bfd8756e4f3fd080d3aba20a4fcb Merge pull request #2602 from 9rnsr/fix11146 Issue 11146 - Wrong line number of "identity assignment operator overload is illegal"