[GHC] #5434: <no location info> for shadowing warnings in TH-generated code

GHC cvs-ghc at haskell.org
Thu Aug 25 19:37:07 CEST 2011


#5434: <no location info> for shadowing warnings in TH-generated code
---------------------------------+------------------------------------------
    Reporter:  byorgey           |        Owner:                                   
        Type:  bug               |       Status:  new                              
    Priority:  normal            |    Milestone:                                   
   Component:  Compiler          |      Version:  7.2.1                            
    Keywords:                    |     Testcase:                                   
   Blockedby:                    |   Difficulty:                                   
          Os:  Unknown/Multiple  |     Blocking:                                   
Architecture:  Unknown/Multiple  |      Failure:  Incorrect warning at compile-time
---------------------------------+------------------------------------------
Description changed by igloo:

Old description:

> See attached test case, which causes this warning to be printed when
> THShadowSplice.hs is compiled with -Wall:
>
> <no location info>:
>     Warning: This binding for `x' shadows the existing binding
>                bound at THShadowSplice.hs:7:3
>
> There ought to be some location info.  I have also seen warnings of the
> form
>
> <no location info>:
>     Warning: This binding for `x' shadows the existing binding
>                bound at <no location info>
>
> although I have not yet been able to construct a small test case which
> exhibits this behavior.

New description:

 See attached test case, which causes this warning to be printed when
 THShadowSplice.hs is compiled with -Wall:
 {{{
 <no location info>:
     Warning: This binding for `x' shadows the existing binding
                bound at THShadowSplice.hs:7:3
 }}}
 There ought to be some location info.  I have also seen warnings of the
 form
 {{{
 <no location info>:
     Warning: This binding for `x' shadows the existing binding
                bound at <no location info>
 }}}
 although I have not yet been able to construct a small test case which
 exhibits this behavior.

--

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5434#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the Glasgow-haskell-bugs mailing list