#3079: LANGUAGE pragma fails if it falls on a 1024-byte boundary
-------------------------------+--------------------------------------------
 Reporter:  Deewiant           |          Owner:                  
     Type:  bug                |         Status:  new             
 Priority:  normal             |      Milestone:                  
Component:  Compiler (Parser)  |        Version:  6.10.1          
 Severity:  critical           |     Resolution:                  
 Keywords:                     |       Testcase:                  
       Os:  Unknown/Multiple   |   Architecture:  Unknown/Multiple
-------------------------------+--------------------------------------------
Changes (by Deewiant):

  * summary:  LANGUAGE pragma fails if preceded by too many comments =>
              LANGUAGE pragma fails if it falls on a
              1024-byte boundary

Comment:

 I tried adding more comments before it and that also made it work. Adding
 still more breaks it again as soon as the 2048th byte is among the
 contents of the `{-# #-}`, so this is indeed an alignment issue.

 The error message which I managed to forget putting into the report:
 {{{
 arst.hs:21:13:
     cannot parse LANGUAGE pragma: comma-separated list expected
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3079#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to