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

compiler crash when compiling objects with -nopervasives -nostdlib #6983

Closed
vicuna opened this issue Sep 9, 2015 · 1 comment
Closed

compiler crash when compiling objects with -nopervasives -nostdlib #6983

vicuna opened this issue Sep 9, 2015 · 1 comment

Comments

@vicuna
Copy link

vicuna commented Sep 9, 2015

Original bug ID: 6983
Reporter: @damiendoligez
Status: closed (set by @alainfrisch on 2016-01-27T08:31:34Z)
Resolution: won't fix
Priority: low
Severity: tweak
Platform: all
Version: 4.03.0+dev / +beta1
Target version: 4.03.0+dev / +beta1
Category: back end (clambda to assembly)

Bug description

When compiling object-oriented code with -nopervasives -nostdlib, the compiler crashes with "Fatal error". It should give a proper error message instead.

Steps to reproduce

$ cat >foo.ml
class c = object method m = 23 end;;
^D
$ ocamlc -nopervasives -nostdlib foo.ml

@vicuna
Copy link
Author

vicuna commented Nov 28, 2015

Comment author: @xavierleroy

Do we care enough to add a specific error message? -nopervasives is undocumented, and I'm not sure -nostdlib is used anywhere outside the build of the core system.

@vicuna vicuna closed this as completed Jan 27, 2016
@vicuna vicuna added this to the 4.03.0 milestone Mar 14, 2019
@vicuna vicuna added the bug label Mar 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant