[GHC] #13918: No "warning: [-Wunrecognised-pragmas] Unrecognised pragma" when there is no name of pragmas

GHC ghc-devs at haskell.org
Tue Jul 4 17:06:27 UTC 2017


#13918: No "warning: [-Wunrecognised-pragmas] Unrecognised pragma" when there is no
name of pragmas
-------------------------------------+-------------------------------------
        Reporter:  vanto             |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.0.1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Incorrect         |  Unknown/Multiple
  error/warning at compile-time      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by bgamari):

 > About LANGUAGE pragma, Can you quote the reference manual in which you
 read this sentence, please, and show me the page?

 It's never said terribly explicitly, that being said I think it's pretty
 reasonable to assume for syntactic consistency.

 That being said, I am a bit surprised that a LANGUAGE pragma is accepted
 here at all. Afterall, it's a file pragma and therefore should only occur
 before the `module` declaration.

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


More information about the ghc-tickets mailing list