Overflow bug in hex character literals
Prelude> "Hel\x6c000000000000000 World"
<interactive>:1:7: lexical error in string/character literal at character 'c'
Prelude> "Hel\x6c0000000000000000 World"
"Hel\NUL World"
Two bugs really: the first error message gives a strange location, and the second example is probably the result of an overflow somewhere.
Trac metadata
Trac field | Value |
---|---|
Version | 6.6.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | low |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | Unknown |
Architecture | Unknown |