#1171: GHC generates incorrect code with -O for Haskell 98 program
----------------------+-----------------------------------------------------
Reporter: neil | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 6.6
Severity: major | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Architecture: Multiple
Os: Multiple |
----------------------+-----------------------------------------------------
Comment (by thorkilnaur):
With a recently built ghc HEAD, I cannot reproduce the problem:
{{{
Thorkil-Naurs-Computer:~/tn/GHC/trac/1171/work/1171Material thorkilnaur$
ghc --version
The Glorious Glasgow Haskell Compilation System, version 6.7.20070223
Thorkil-Naurs-Computer:~/tn/GHC/trac/1171/work/1171Material thorkilnaur$
sh ghc.sh
[1 of 2] Compiling Package ( Package.hs, Package.o )
[2 of 2] Compiling Main ( T3.hs, T3.o )
Linking T3 ...
T3: 2007-Feb-25 01.57
T3: Error: File not found
[1 of 2] Compiling Package ( Package.hs, Package.o )
[2 of 2] Compiling Main ( T3.hs, T3.o )
Linking T3 ...
T3: 2007-Feb-25 01.57
T3: Error: File not found
Thorkil-Naurs-Computer:~/tn/GHC/trac/1171/work/1171Material thorkilnaur$
}}}
As we can observe, the same (correct) output is produced, both in the -O
and the non -O case for this ghc.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1171>
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