[GHC] #7118: Comments of curly bracket form, which appear at the end of type deffinitions confuse GHC
GHC
cvs-ghc at haskell.org
Sat Aug 4 01:36:45 CEST 2012
#7118: Comments of curly bracket form, which appear at the end of type
deffinitions confuse GHC
--------------------------------+-------------------------------------------
Reporter: timthelion | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 7.4.2 | Keywords:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
Failure: Compile-time crash | Testcase:
Blockedby: | Blocking:
Related: |
--------------------------------+-------------------------------------------
{{{
$ cat HaskarrowHelloWorld.broken.hs
main :: IO (){-# LINE 8 "" #-}
main = print "Hi"
[timothy at timothy rewrite]$ ghc HaskarrowHelloWorld.broken.hs
[1 of 1] Compiling Main ( HaskarrowHelloWorld.broken.hs,
HaskarrowHelloWorld.broken.o )
ghc: panic! (the 'impossible' happened)
(GHC version 7.4.2 for x86_64-unknown-linux):
Prelude.head: empty list
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
[timothy at timothy rewrite]$
$ ghc HaskarrowHelloWorld.working.hs
[1 of 1] Compiling Main ( HaskarrowHelloWorld.working.hs,
HaskarrowHelloWorld.working.o )
Linking HaskarrowHelloWorld.working ...
[timothy at timothy rewrite]$ cat HaskarrowHelloWorld.working.hs
main :: IO ()--{-# LINE 8 "" #-}
main = print "Hi"
[timothy at timothy rewrite]$ ./HaskarrowHelloWorld.working
"Hi"
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7118>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list