Stoping constant folding of calls to chr# that are invalid
authorandy@galois.com <unknown>
Wed, 11 Jul 2007 06:35:20 +0000 (06:35 +0000)
committerandy@galois.com <unknown>
Wed, 11 Jul 2007 06:35:20 +0000 (06:35 +0000)
commit6758ba711a3f9f3100a9dba1818b131c32e62106
tree7133b67ec35a30a25a2e97929ec82a4768e0bce0
parent72b5392f4103dc895d569bfad647ddec2de67dec
Stoping constant folding of calls to chr# that are invalid

import GHC.Exts
main = print (C# (chr# 0xffffffff#))

This crashed at compile time (with or without hpc)
Tickled by pending cross-module hpc inlining patch.
compiler/basicTypes/Literal.lhs
compiler/prelude/PrelRules.lhs