digitalmars.D.bugs - [Issue 9796] New: "too many initializers" error message doesn't give correct line number
- d-bugmail puremagic.com (26/26) Mar 23 2013 http://d.puremagic.com/issues/show_bug.cgi?id=9796
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 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: -------
Mar 23 2013