http://d.puremagic.com/issues/show_bug.cgi?id=9250
Summary: Wrong error line number with an assignment
Product: D
Version: D2
Platform: x86
OS/Version: Windows
Status: NEW
Keywords: diagnostic
Severity: minor
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from [email protected] 2013-01-01 08:22:13 PST ---
struct Foo {
ubyte u;
alias this = u;
}
void main() {
size_t[10] bar; // line 6, error
// ...
// ...
// ...
// ...
Foo x = bar.length;
}
DMD 2.061alpha show a wrong line number for the error message, 6 instead of 11:
test.d(6): Error: cannot implicitly convert expression (10u) of type uint to
Foo
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------