Ticket #7736 (new bug)

Opened 3 months ago

Last modified 6 weeks ago

Parallel array enumeration causes compiler panic (enumFromToP)

Reported by: amosrobinson Owned by: chak
Priority: normal Milestone: 7.8.1
Component: Compiler Version: 7.7
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Compile-time crash Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets: #7078

Description

Enumeration doesn't work in parallel array comprehensions:

nums = [: 0 .. 100 :]

causes a compiler panic. Interestingly, the panic seems to happen before typechecking because if we add some nonsense:

other = 5 / "bad"
nums = [: 0 .. 100 :]

it still panics.

Attachments

EnumFromToP.hs Download (0.7 KB) - added by amosrobinson 3 months ago.
Test case

Change History

Changed 3 months ago by amosrobinson

Test case

Changed 3 months ago by amosrobinson

  • version changed from 7.6.2 to 7.7

Have only tested in HEAD.

Changed 3 months ago by amosrobinson

Added regression test to testsuite: tests/dph/enumfromto/

Changed 3 months ago by simonpj

  • owner set to chak
  • difficulty set to Unknown

Changed 3 months ago by monoidal

  • related set to #7078

Changed 6 weeks ago by igloo

  • milestone set to 7.8.1
Note: See TracTickets for help on using tickets.