caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] ocaml VM segfault
@ 2001-04-03 17:08 David Fox
       [not found] ` <Pine.BSF.4.21.0104031020470.6163-100000@shell5.ba.best.com>
  0 siblings, 1 reply; 3+ messages in thread
From: David Fox @ 2001-04-03 17:08 UTC (permalink / raw)
  To: caml-list

The following program segfaults when I compile it with ocamlc version 3.01:

  type 'a declarator = {ml: string; t: 'a}
  
  type 'a cdecl =
      Declare of 'a declarator
    | Macro of 'a declarator
  
  type ctype = String | Char
  
  let caml_code decl =
    match decl with
      (Declare {ml=mname; t=ctype} | Macro {ml=mname; t=ctype}) ->
        match ctype with String -> mname
        | _ -> ""
  
  let _ = caml_code (Declare {ml="getenv"; t=String})
-------------------
To unsubscribe, mail caml-list-request@inria.fr.  Archives: http://caml.inria.fr


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-04-03 18:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-03 17:08 [Caml-list] ocaml VM segfault David Fox
     [not found] ` <Pine.BSF.4.21.0104031020470.6163-100000@shell5.ba.best.com>
2001-04-03 17:33   ` David Fox
2001-04-03 18:28     ` Luc Maranget

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).