Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Typing crash when pattern matching with polymorphic variants + exception cases #7083
Original bug ID: 7083
let f x =
crashes the typechecker.
The problem seems to have been introduced by #305. The crash occurs when calling Parmatch.pressure_variants to check for exhaustiveness. This function calls Parmatch.filter_all which calls Parmatch.normalize_pat which crashes upon seeing the exception case.
Comment author: @gasche
The problem raised by nojebar highlighted that we did not understand the implications of #305 as well as we thought. After some discussion with Thomas Refis and Luc Maranget, I decided to revert the change from trunk -- it is not ready for 4.03 and will have to wait for a later release.
So, many thanks for the diligent reporting!