GHC issues
https://gitlab.haskell.org/ghc/ghc/-/issues
2019-07-07T18:52:27Z
https://gitlab.haskell.org/ghc/ghc/-/issues/6037
Compile-time crash with sources with non-representable unicode characters
2019-07-07T18:52:27Z
takano-akio
Compile-time crash with sources with non-representable unicode characters
The following file causes GHC to crash, if compiled in the "C" locale.
```
$ LC_ALL=C ghc unicode.hs
[1 of 1] Compiling Foo ( unicode.hs, unicode.o )
unicode.hs:2:1:
Warning: Pattern match(es) are overlapped
...
The following file causes GHC to crash, if compiled in the "C" locale.
```
$ LC_ALL=C ghc unicode.hs
[1 of 1] Compiling Foo ( unicode.hs, unicode.o )
unicode.hs:2:1:
Warning: Pattern match(es) are overlapped
In an equation for `<stderr>: hPutChar: invalid argument (invalid character)
```
unicode.hs:
```
module Foo where
δ x = 3
δ x = 4
```
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------ |
| Version | 7.4.1 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"Compile-time crash with sources with non-representable unicode characters","status":"New","operating_system":"","component":"Compiler","related":[],"milestone":"","resolution":"Unresolved","owner":{"tag":"Unowned"},"version":"7.4.1","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"The following file causes GHC to crash, if compiled in the \"C\" locale.\r\n\r\n{{{\r\n$ LC_ALL=C ghc unicode.hs\r\n[1 of 1] Compiling Foo ( unicode.hs, unicode.o )\r\n\r\nunicode.hs:2:1:\r\n Warning: Pattern match(es) are overlapped\r\n In an equation for `<stderr>: hPutChar: invalid argument (invalid character)\r\n}}}\r\n\r\nunicode.hs:\r\n{{{\r\nmodule Foo where\r\nδ x = 3\r\nδ x = 4\r\n}}}","type_of_failure":"OtherFailure","blocking":[]} -->
7.10.3
Michael Snoyman
michael@snoyman.com
Michael Snoyman
michael@snoyman.com