#1806: panic when pattern matching infix constructors with too many arguments
-----------------------+----------------------------------------------------
Reporter: guest | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 6.8
Severity: minor | Keywords: panic infix constructor pattern
Difficulty: Unknown | Os: Unknown
Testcase: | Architecture: Unknown
-----------------------+----------------------------------------------------
When compiling the following incorrect code
{{{
data Foo = (:::)
--data Foo = (:::) ()
foo (_ ::: _) = ()
}}}
both 6.8.0.20071025 and 6.9.20071025 panic:
{{{
ghc-6.8.0.20071025: panic! (the 'impossible' happened)
(GHC version 6.8.0.20071025 for i386-unknown-linux):
tcConArgs main:Test.:::{d r5E}
ghc-6.9.20071025: panic! (the 'impossible' happened)
(GHC version 6.9.20071025 for i386-unknown-linux):
tcConArgs main:Test.:::{d r5A}
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1806>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs