Ticket #302 (closed bug: None)

Opened 8 years ago

Last modified 43 years ago

overlapping pattern matching weirdness

Reported by: nobody Owned by: nobody
Priority: normal Milestone:
Component: None Version: None
Keywords: Cc:
Operating System: Architecture:
Type of failure: Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

the following code gives me the error message below in
GHCi:

> context :: Lattice -> Context State Constraint
> context lat = case lat of 
>	fromBigLattice -> bigC
>	fromSmallLattice -> smallC
>       _ -> error "non-existing lattice..."

GHCi:

Logic.lhs:92:
    Warning: Pattern match(es) are overlapped
	     In a case alternative:
		 fromSmallLattice -> ...
		 _ -> ...
ghc.exe: panic! (the `impossible' happened, GHC version
6.2.1):
	Bytecode generator can't handle unboxed tuples. 
Possibly due
	to foreign import/export decls in source.  Workaround:
	compile this module to a .o file, then restart session.

Please report it as a compiler bug to
glasgow-haskell-bugs@haskell.org,
or http://sourceforge.net/projects/ghc/.


the Lattice type is a tuple... 
for more details, contact
stijn@jaist.ac.jp

Change History

Changed 8 years ago by simonmar

Logged In: YES 
user_id=48280

Could you please provide the code so we can reproduce the
bug.  Thanks.

Changed 8 years ago by nobody

Logged In: NO 

Not a bug: fromBigLattice and fromSmallLattice are
variables, which certainly overlap with each other and _.

Changed 8 years ago by simonmar

Logged In: YES 
user_id=48280

Submitter can't reproduce the panic, so I'm closing the bug.

Changed 8 years ago by simonmar

  • status changed from assigned to closed
Note: See TracTickets for help on using tickets.