Ticket #7093 (closed bug: duplicate)

Opened 10 months ago

Last modified 10 months ago

Exception when encountering instance declarations without class name

Reported by: guest Owned by:
Priority: normal Milestone:
Component: Compiler (Parser) Version: 7.4.1
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Compile-time crash Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

Code

instance Bounded b => (a -> b) where
 minBound = const minBound
 maxBound = const maxBound

GHC 7.4.1 "crashes" with an exception if the class name is missing.

*** Exception: compiler/rename/RnSource.lhs:429:14-81: Irrefutable pattern failed for pattern Data.Maybe.Just (inst_tyvars,
                                                        _,
                                                        SrcLoc.L _ cls,
                                                        _)

Change History

Changed 10 months ago by simonpj

  • status changed from new to closed
  • difficulty set to Unknown
  • resolution set to duplicate

Another dup of #5951. Please re-open if you think it isn't a dup.

Note: See TracTickets for help on using tickets.