[GHC] #8384: -fwarn-empty-enumerations doesn't work with -fhpc

#8384: -fwarn-empty-enumerations doesn't work with -fhpc ------------------------------------+------------------------------------- Reporter: rwbarton | Owner: Type: bug | Status: new Priority: low | Milestone: Component: Compiler | Version: 7.7 Keywords: | Operating System: Unknown/Multiple Architecture: Unknown/Multiple | Type of failure: None/Unknown Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | ------------------------------------+------------------------------------- It appears that tick insertion occurs before arithmetic sequences are desugared, so `warnAboutEmptyEnumerations` can't see the calls to `fromInteger`, because they have been wrapped in ticks already. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8384 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8384: -fwarn-empty-enumerations doesn't work with -fhpc
-------------------------------------+------------------------------------
Reporter: rwbarton | Owner:
Type: bug | Status: new
Priority: low | Milestone:
Component: Compiler | Version: 7.7
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture: Unknown/Multiple
Type of failure: None/Unknown | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
-------------------------------------+------------------------------------
Comment (by Krzysztof Gogolewski

#8384: -fwarn-empty-enumerations doesn't work with -fhpc -------------------------------------+------------------------------------ Reporter: rwbarton | Owner: Type: bug | Status: new Priority: low | Milestone: Component: Compiler | Version: 7.7 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Comment (by simonpj): In [changeset:9864edf2557d7a52a4c3d8cccfe1e9e12bf26ebf/ghc]: {{{ Look through tick-boxes when looking for integral literals in the desugarer Fixes Trac #8334 }}} (I mis-typed the commit message, but it is for ''this'' ticket #8384) -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8384#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8384: -fwarn-empty-enumerations doesn't work with -fhpc
-------------------------------------+------------------------------------
Reporter: rwbarton | Owner:
Type: bug | Status: new
Priority: low | Milestone:
Component: Compiler | Version: 7.7
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture: Unknown/Multiple
Type of failure: None/Unknown | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
-------------------------------------+------------------------------------
Comment (by Simon Peyton Jones

#8384: -fwarn-empty-enumerations doesn't work with -fhpc -------------------------------------+------------------------------------ Reporter: rwbarton | Owner: Type: bug | Status: closed Priority: low | Milestone: Component: Compiler | Version: 7.7 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: numeric/T7881 | Blocked By: Blocking: | Related Tickets: -------------------------------------+------------------------------------ Changes (by simonpj): * status: new => closed * testcase: => numeric/T7881 * resolution: => fixed Comment: Thanks; easy fix. Simon -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8384#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC