id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	os	architecture	failure	difficulty	testcase	blockedby	blocking	related
4209	LLVM: Vector code segfaults under OSX	dterei	dterei	"The following code:

{{{
import Data.Vector.Unboxed as V

main = foo 0 `seq` return ()

foo :: Int -> Vector Int
foo n = V.zipWith (\i j -> if i == j then 0 else 1)
              (V.replicate n 0) (V.enumFromTo 0 (n - 1))
}}}

Segfaults under OSX when compiled with GHC HEAD with the following flags:

{{{
ghc -fllvm -O2 -optlc-O3 --make v.hs
}}}

The problem only occurs when ghc is set to -O2 and llc is set to -O3. (opt tools optimisation level doesn't seem to matter).

The problem also only occurs when TNTC is enabled."	bug	closed	normal	7.0.2	Compiler (LLVM)	6.13	fixed	osx tntc llvm segfault	pho@…	MacOS X	x86	Runtime crash					
