September 16, 2013 [Issue 11049] New: RangeError does not recognize file name modified by #line directive | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=11049 Summary: RangeError does not recognize file name modified by #line directive Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: wrong-code Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: k.hara.pg@gmail.com --- Comment #0 from Kenji Hara <k.hara.pg@gmail.com> 2013-09-15 22:45:05 PDT --- This test case cannot pass assertions. void main() { int[] arr = [1,2,3]; #line 100 "foo" try { auto n = arr[3]; } catch (Error e) { assert(e.file == "foo"); // fails assert(e.line == 100); } #line 200 "bar" try { auto a = arr[3..9]; } catch (Error e) { assert(e.file == "bar"); // fails assert(e.line == 200); } } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
September 16, 2013 [Issue 11049] RangeError does not recognize file name modified by #line directive | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kenji Hara | http://d.puremagic.com/issues/show_bug.cgi?id=11049 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull --- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2013-09-15 23:25:57 PDT --- https://github.com/D-Programming-Language/dmd/pull/2561 -- 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