You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 7083 Reporter:@nojb Assigned to:@alainfrisch Status: closed (set by @xavierleroy on 2017-02-16T14:18:12Z) Resolution: fixed Priority: normal Severity: crash Target version: 4.03.0+dev / +beta1 Fixed in version: 4.03.0+dev / +beta1 Category: typing Monitored by:@gasche@hcarty@alainfrisch
Bug description
The code
let f x =
match x with
| `A -> ()
| exception Not_found -> ()
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.
The text was updated successfully, but these errors were encountered:
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.
Original bug ID: 7083
Reporter: @nojb
Assigned to: @alainfrisch
Status: closed (set by @xavierleroy on 2017-02-16T14:18:12Z)
Resolution: fixed
Priority: normal
Severity: crash
Target version: 4.03.0+dev / +beta1
Fixed in version: 4.03.0+dev / +beta1
Category: typing
Monitored by: @gasche @hcarty @alainfrisch
Bug description
The code
let f x =
match x with
| `A -> ()
| exception Not_found -> ()
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.
The text was updated successfully, but these errors were encountered: