[GHC] #7906: INLINEABLE on class method triggers the error for INLINE

#7906: INLINEABLE on class method triggers the error for INLINE ----------------------------------------------+----------------------------- Reporter: guest | Owner: Type: bug | Status: new Priority: normal | Component: Compiler Version: 7.6.3 | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: Incorrect warning at compile-time | Blockedby: Blocking: | Related: ----------------------------------------------+----------------------------- {{{ class Foo f where foo :: f {-# INLINEABLE foo #-} }}} causes the following error {{{ The INLINE pragma for `foo' lacks an accompanying binding (You cannot give a INLINE pragma for a record selector or class method) }}} Which incorrectly refers to INLINE and not the used INLINEABLE. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7906 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7906: INLINEABLE on class method triggers the error for INLINE
----------------------------------------------+-----------------------------
Reporter: guest | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 7.6.3 | Keywords:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
Failure: Incorrect warning at compile-time | Blockedby:
Blocking: | Related:
----------------------------------------------+-----------------------------
Comment(by simonpj@…):
commit 1d4704d4cdbb197725ddefb864d58158592136a4
{{{
Author: Simon Peyton Jones

#7906: INLINEABLE on class method triggers the error for INLINE ------------------------------------------------+--------------------------- Reporter: guest | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Resolution: fixed | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: Incorrect warning at compile-time | Difficulty: Unknown Testcase: rename/should_fail/T7906 | Blockedby: Blocking: | Related: ------------------------------------------------+--------------------------- Changes (by simonpj): * status: new => closed * difficulty: => Unknown * resolution: => fixed * testcase: => rename/should_fail/T7906 Comment: Good point, thanks. Simon -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7906#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC