Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught exception (bug) in Matcher #2750

Closed
vicuna opened this issue Apr 18, 2001 · 2 comments
Closed

Uncaught exception (bug) in Matcher #2750

vicuna opened this issue Apr 18, 2001 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Apr 18, 2001

Original bug ID: 342
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Jean-Marc Eber
Version: 3.01
OS: linux
Submission from: 212.155.146.148 (212.155.146.148)

    Objective Caml version 3.01

type t = {x:float; y: float; z:bool}

let f = function
| {x=a; z=true}
| {y=a; z=false} -> a
;;

Fatal error: Matching.filter_ctx
Uncaught exception: Misc.Fatal_error

C'est probablement déjà un problème rencontré, rapporté, mais je le répète
quand même.

Cordialement, (Vive OCaml!)

Jean-Marc Eber

@vicuna
Copy link
Author

vicuna commented Apr 23, 2001

Comment author: administrator

Full_Name: Jean-Marc Eber
Version: 3.01
OS: linux
Submission from: 212.155.146.148 (212.155.146.148)

    Objective Caml version 3.01

type t = {x:float; y: float; z:bool}

let f = function
| {x=a; z=true}
| {y=a; z=false} -> a
;;

Fatal error: Matching.filter_ctx
Uncaught exception: Misc.Fatal_error

C'est probablement déjà un problème rencontré, rapporté, mais je le répète
quand même.

Cordialement, (Vive OCaml!)

Jean-Marc Eber

C'est bien un bug.

Il est en cours de correction dans la version de developpement.

En attendant, on peut tourner autour de ce bug bien malheureux en
écrivant.

let f = function
| {x=a; y=; z=true}
| {x=
; y=a; z=false} -> a

Merci d'avoir dénoncé ce bug...

--Luc Maranget

---------- English summary. -----------

This is a bug. It is being corrected, a workaround is writing:

let f = function
| {x=a; y=; z=true}
| {x=
; y=a; z=false} -> a

@vicuna
Copy link
Author

vicuna commented Apr 23, 2001

Comment author: administrator

Fixed by Luc on 04/23/2001

@vicuna vicuna closed this as completed Apr 23, 2001
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant