ghc 6.2 possible bug with gcc 3.3.x, strange parse error
Donald Bruce Stewart
dons at cse.unsw.edu.au
Sun Mar 14 22:45:20 EST 2004
bjpop:
> 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.
I'm pretty sure SimonM mentioned something on the list a few months ago
about gcc3-cpp changing the way it processes the end of \
line style tokens.
It would be in the archives, and maybe in the user's guide (there's
something about string gaps in there, at least).
Cheers,
Don
More information about the Glasgow-haskell-bugs
mailing list