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

4.03.0+beta1+flambda ocamlopt crashes: "Fatal error: Stubs may not be annotated as [Always_specialise]" #7191

Closed
vicuna opened this issue Mar 21, 2016 · 1 comment
Assignees
Labels

Comments

@vicuna
Copy link

vicuna commented Mar 21, 2016

Original bug ID: 7191
Reporter: aleksey
Assigned to: @chambart
Status: closed (set by @xavierleroy on 2017-09-24T15:32:07Z)
Resolution: fixed
Priority: normal
Severity: minor
OS: Linux
Fixed in version: 4.03.0+dev / +beta1
Category: ~DO NOT USE (was: OCaml general)
Monitored by: @ygrek @hcarty

Bug description

ocamlopt from 4.03.0+beta1+flambda opam version crashes on compiling the following file:

let foo f x = f x [@@specialise]
let bar = foo (+) 0

with the following error:

Fatal error: Stubs may not be annotated as [Always_specialise]: (apply*[foo/56] foo/56
f/57)

Fatal error: exception Misc.Fatal_error

@vicuna
Copy link
Author

vicuna commented Mar 22, 2016

Comment author: @chambart

It was fixed a few days ago in 0c3ccbd
It is not yet released.

This was a problem with generated stub functions keeping the annotation of their parent.

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

2 participants