[Issue 11146] New: Wrong line number of "identity assignment operator overload is illegal"
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Sep 30 00:31:00 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11146
Summary: Wrong line number of "identity assignment operator
overload is illegal"
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: diagnostic
Severity: minor
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: k.hara.pg at gmail.com
--- Comment #0 from Kenji Hara <k.hara.pg at gmail.com> 2013-09-30 00:30:59 PDT ---
>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
--
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