caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: David Fox <dsfox@cogsci.ucsd.edu>
To: caml-list@inria.fr
Subject: [Caml-list] ocaml VM segfault
Date: 03 Apr 2001 10:08:35 -0700	[thread overview]
Message-ID: <luwv91kj1o.fsf@hci.ucsd.edu> (raw)
In-Reply-To: Alex Baretta's message of "Sat, 17 Mar 2001 02:35:47 +0100"

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


             reply	other threads:[~2001-04-03 17:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-03 17:08 David Fox [this message]
     [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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=luwv91kj1o.fsf@hci.ucsd.edu \
    --to=dsfox@cogsci.ucsd.edu \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).