http://d.puremagic.com/issues/show_bug.cgi?id=9796
Summary: "too many initializers" error message doesn't give
correct line number
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Sarath Kumar Kodali <[email protected]> 2013-03-23
10:09:15 PDT ---
$ cat too_many_inits.d
struct Foo { string a, b; }
static Foo foo[] = [
{ "test1", "test2", "test3", },
{ "test1", "test2", },
];
$ dmd -c too_many_inits.d
too_many_inits.d(5): Error: too many initializers for Foo
The error is in line 3 and not in line 5 as reported by the compiler.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------