id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	os	architecture	failure	difficulty	testcase	blockedby	blocking	related
4411	Incorrect defined but not used warning with record wildcards	NeilMitchell		"{{{

{-# LANGUAGE RecordWildCards #-}

module Test where

data T = MkT { f,g :: Int }

p1 x = let MkT{..} = x in f

p2 MkT{..} = f
}}}

With GHC 6.12.3 this gives the warning:

{{{
Test.hs:7:11: Warning: Defined but not used: `g'
}}}

i.e. {{{p1}}} gives a warning, but {{{p2}}} doesn't. Neither is meant to give a warning.

-- Neil"	bug	closed	normal		Compiler	6.12.3	duplicate			Unknown/Multiple	Unknown/Multiple	Incorrect warning at compile-time					
