[GHC] #9390: Inlining prevents evaluation of ignored parts of unboxed tuples
GHC
ghc-devs at haskell.org
Wed Aug 6 05:18:10 UTC 2014
#9390: Inlining prevents evaluation of ignored parts of unboxed tuples
-------------------------------------+-------------------------------------
Reporter: snoyberg | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 7.8.4
Component: Compiler | Version: 7.8.3
Resolution: | Keywords:
Operating System: Linux | Architecture: x86_64 (amd64)
Type of failure: Incorrect | Difficulty: Unknown
result at runtime | Blocked By:
Test Case: | Related Tickets:
Blocking: |
Differential Revisions: |
-------------------------------------+-------------------------------------
Comment (by carter):
On the flip side, the version in my example is also VERY weird code to
write also, I can't imagine anything like my example occurring in the
wild. Most uses of unsafe*PerformIO in the wild "return" a value thats
used by the rest of the program, BUT both mine and snoymans examples are
per se "dead code" wrt the alleged purity!
I think my example might just simply be legal CSE wrt alleged purity.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9390#comment:9>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list