[Issue 9796] New: "too many initializers" error message doesn't give correct line number
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Mar 23 10:09:16 PDT 2013
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: nobody at puremagic.com
ReportedBy: kodlists-dlang at yahoo.com
--- Comment #0 from Sarath Kumar Kodali <kodlists-dlang at yahoo.com> 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: -------
More information about the Digitalmars-d-bugs
mailing list