ghc 6.2 possible bug with gcc 3.3.x, strange parse error

Bernard James POPE bjpop at cs.mu.OZ.AU
Sun Mar 14 22:36:54 EST 2004


Hi,

Something very mysterious is happening when buddha is built with
GHC 6.2 on machines that have gcc 3.3.x

This bug has occurred on these two machines so far:

    Gentoo linux with gcc 3.3.2
    FreeBSD with gcc 3.3.3

Both x86 machines.

Note however, that the bug does not appear on machines with 
gcc 2.x series compilers.

buddha can be downloaded from:

   www.cs.mu.oz.au/~bjpop/buddha

The file in question is (from the buddha soure package): 

   prelude/Buddha/List_B.hs

GHC gives a parse error on this line of code:

   infix 5 \\

The error message is:

   List_B.hs:23: parse error on input `\'

I don't think there is any parse error in the file, and GHC 6.2 with gcc 2.x
doesn't think so either.

Cheers,
Bernie.


More information about the Glasgow-haskell-bugs mailing list