[GHC] #6148: 63-tuples are not rejected when written using (,,,)
GHC
cvs-ghc at haskell.org
Wed Jun 6 13:21:37 CEST 2012
#6148: 63-tuples are not rejected when written using (,,,)
-----------------------------------------+----------------------------------
Reporter: guest | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler
Version: 7.4.1 | Keywords:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
Failure: GHC accepts invalid program | Testcase:
Blockedby: | Blocking:
Related: |
-----------------------------------------+----------------------------------
Corner case with tuples: 'b' should give the same error as 'a'.
{{{
Prelude> let a = (0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)
<interactive>:2:9:
A 63-tuple is too large for GHC
(max size is 62)
Workaround: use nested tuples or define a data type
Prelude> let b =
(,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,)
ByteCodeLink.lookupIE
During interactive linking, GHCi couldn't find the following symbol:
ghczmprim_GHCziTuple_Z63T_con_info or
ghczmprim_GHCziTuple_Z63T_static_info
This may be due to you not asking GHCi to load extra object files,
archives or DLLs needed by your current session. Restart GHCi,
specifying...
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/6148>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list