March 23, 2013 [Issue 9796] New: "too many initializers" error message doesn't give correct line number | ||||
---|---|---|---|---|
| ||||
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@puremagic.com ReportedBy: kodlists-dlang@yahoo.com --- Comment #0 from Sarath Kumar Kodali <kodlists-dlang@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: ------- |
Copyright © 1999-2021 by the D Language Foundation