September 15, 2013 [dmd-internals] [D-Programming-Language/dmd] d1ab50: fix Issue 9565 - Index of static array should not ... | ||||
---|---|---|---|---|
| ||||
Attachments:
| Branch: refs/heads/master Home: https://github.com/D-Programming-Language/dmd Commit: d1ab5012b00c34023ed715a0c22ecb3bd8b674ff https://github.com/D-Programming-Language/dmd/commit/d1ab5012b00c34023ed715a0c22ecb3bd8b674ff Author: k-hara <k.hara.pg@gmail.com> Date: 2013-09-08 (Sun, 08 Sep 2013) Changed paths: M src/expression.c M src/mtype.c A test/compilable/test9565.d M test/fail_compilation/diag7420.d M test/fail_compilation/diag8892.d M test/fail_compilation/fail10102.d Log Message: ----------- fix Issue 9565 - Index of static array should not print literal suffix Static array type index is always size_t, so unnecessary suffix is harmful for platform independent diagnostic message. (Note that: In 64bit platform, size_t is ulong, and if the value is greater than long.max, suffix is *necessary*.) Same problem exists in IndexExp and SliceExp printing. Commit: 724566600724314a27dbf7bfd63aeda12f27780d https://github.com/D-Programming-Language/dmd/commit/724566600724314a27dbf7bfd63aeda12f27780d Author: Walter Bright <walter@walterbright.com> Date: 2013-09-15 (Sun, 15 Sep 2013) Changed paths: M src/expression.c M src/mtype.c A test/compilable/test9565.d M test/fail_compilation/diag7420.d M test/fail_compilation/diag8892.d M test/fail_compilation/fail10102.d Log Message: ----------- Merge pull request #2522 from 9rnsr/fix9565 Issue 9565 - Index of static array should not print literal suffix Compare: https://github.com/D-Programming-Language/dmd/compare/2b7b591296f6...724566600724 |
Copyright © 1999-2021 by the D Language Foundation