[GHC] #15708: Cross-module SPECIALZE pragmas aren't typechecked in -O0

GHC ghc-devs at haskell.org
Fri Oct 5 13:51:18 UTC 2018


#15708: Cross-module SPECIALZE pragmas aren't typechecked in -O0
-------------------------------------+-------------------------------------
        Reporter:  regnat            |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler (Type    |              Version:  8.6.1
  checker)                           |
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  GHC accepts       |  Unknown/Multiple
  invalid program                    |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by simonpj):

 Currently that's by-design: without -O we just treat SPECIALISE pragmas as
 comments.

 Could easily be changed if that what our users wanted: we could type check
 the pragma and then discard it (because we are doing -O0).

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15708#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list