July 16, 2012 [dmd-internals] [D-Programming-Language/dmd] c7b567: Issue 6458 - Multibyte char literals shouldn't imp... | ||||
---|---|---|---|---|
| ||||
Attachments:
| Branch: refs/heads/master Home: https://github.com/D-Programming-Language/dmd Commit: c7b567eef6b39ae93b2c3915cea07579e959c035 https://github.com/D-Programming-Language/dmd/commit/c7b567eef6b39ae93b2c3915cea07579e959c035 Author: Daniel Murphy <yebblies@gmail.com> Date: 2012-04-13 (Fri, 13 Apr 2012) Changed paths: M src/cast.c A test/fail_compilation/fail6458.d Log Message: ----------- Issue 6458 - Multibyte char literals shouldn't implicitly convert to char Disallow implicit conversion from wider to narrower chars when the value same char is not representable in a single value of the narrower type. Eg. '\u00e4' is a valid utf-16 code point, and fits in a char, but is not a valid utf-8 code point. Commit: 0a8b81b18b5464c4081d718080f7d711fae4346f https://github.com/D-Programming-Language/dmd/commit/0a8b81b18b5464c4081d718080f7d711fae4346f Author: Don Clugston <dclugston@googlemail.com> Date: 2012-07-16 (Mon, 16 Jul 2012) Changed paths: M src/cast.c A test/fail_compilation/fail6458.d Log Message: ----------- Merge pull request #663 from yebblies/issue6458 Issue 6458 - Multibyte char literals shouldn't implicitly convert to char Compare: https://github.com/D-Programming-Language/dmd/compare/493a026af52c...0a8b81b18b54 |
Copyright © 1999-2021 by the D Language Foundation