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

vicuna opened this Issue Mar 21, 2016 · 1 comment


None yet
2 participants
Copy link

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

Fatal error: exception Misc.Fatal_error


This comment has been minimized.

Copy link
Collaborator Author

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.

@vicuna vicuna closed this Sep 24, 2017

@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
You can’t perform that action at this time.