Ticket #2136 (closed merge: fixed)

Opened 5 years ago

Last modified 5 years ago

Not warned about unused recursive bindings

Reported by: igloo Owned by: igloo
Priority: normal Milestone: 6.8.3
Component: Compiler Version: 6.8.2
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Difficulty: Unknown
Test Case: rn063 Blocked By:
Blocking: Related Tickets:

Description

If we have this module:

module Q where

v :: a
v = let x = x in undefined

w :: a
w = let y = 'a' in undefined

then we get warned that y is unused, but not that x is:

q.hs:8:8: Warning: Defined but not used: `y'

Change History

Changed 5 years ago by igloo

Forgot to say:

Compiling with ghc -fforce-recomp -Wall -c q.hs.

Also affects the HEAD.

Changed 5 years ago by simonpj

  • owner set to simonpj

I'm fixing this

Changed 5 years ago by simonpj

  • owner changed from simonpj to igloo
  • type changed from bug to merge

Fixed by

Thu Apr  3 04:02:50 PDT 2008  simonpj@microsoft.com
  * Fix Trac #2136: reporting of unused variables

Simon

Changed 5 years ago by igloo

  • status changed from new to closed
  • resolution set to fixed

This doesn't merge cleanly, and I (the reporter) don't think it's very important for 6.8.3, so I'm closing it as it's fixed in the HEAD.

Changed 5 years ago by simonmar

  • architecture changed from Unknown to Unknown/Multiple

Changed 5 years ago by simonmar

  • os changed from Unknown to Unknown/Multiple
Note: See TracTickets for help on using tickets.