summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Clerc <xavier.clerc@inria.fr>2011-07-12 09:41:01 +0000
committerXavier Clerc <xavier.clerc@inria.fr>2011-07-12 09:41:01 +0000
commit46d5420ca9c695738f7a0baa527d3591d95f067a (patch)
tree985ef9fa61549f5809e86e19e1e39c277209fc9c
parent9058be97f9e75f115702bbb187150f2986a0e12c (diff)
PR#5301: camlp4r and exception equal to another one with parameters
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11121 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
-rw-r--r--Changes1
-rw-r--r--camlp4/Camlp4/Struct/Camlp4Ast2OCamlAst.ml4
2 files changed, 2 insertions, 3 deletions
diff --git a/Changes b/Changes
index bc4da5054..b0cefb050 100644
--- a/Changes
+++ b/Changes
@@ -20,7 +20,6 @@ Standard library:
with user-provided hash functions.
Bug Fixes:
-- PR#5301: camlp4r and exception equal to another one with parameters
Objective Caml 3.12.0:
diff --git a/camlp4/Camlp4/Struct/Camlp4Ast2OCamlAst.ml b/camlp4/Camlp4/Struct/Camlp4Ast2OCamlAst.ml
index d917b6d5d..39990bf8e 100644
--- a/camlp4/Camlp4/Struct/Camlp4Ast2OCamlAst.ml
+++ b/camlp4/Camlp4/Struct/Camlp4Ast2OCamlAst.ml
@@ -945,8 +945,8 @@ module Make (Ast : Sig.Camlp4Ast) = struct
(List.map ctyp (list_of_ctyp t []))) :: l ]
| <:str_item@loc< exception $uid:s$ = $i$ >> ->
[mkstr loc (Pstr_exn_rebind (conv_con s) (ident i)) :: l ]
- | <:str_item@loc< exception $uid:s$ of $_$ = $i$ >> ->
- [mkstr loc (Pstr_exn_rebind (conv_con s) (ident i)) :: l ]
+ | <:str_item@loc< exception $uid:_$ of $_$ = $_$ >> ->
+ error loc "type in exception alias"
| StExc _ _ _ -> assert False (*FIXME*)
| StExp loc e -> [mkstr loc (Pstr_eval (expr e)) :: l]
| StExt loc n t sl -> [mkstr loc (Pstr_primitive n (mkvalue_desc t (list_of_meta_list sl))) :: l]