Compiler bug with @ccall
and parametric types
#57023
Labels
bug
Indicates an unexpected problem or unintended behavior
compiler:optimizer
Optimization passes (mostly in base/compiler/ssair/)
Following from this discussion on the discourse
A summary of the problem is:
Here is a full minimal working example of the problem:
Note that this works fine if one of the following:
Table
@ccall
specifies a return typePtr{Cvoid}
, and thenunsafe_convert
s toPtr{T}
The underlying problem was then found by @Seelengrab as discussed at the end of the discourse post
The text was updated successfully, but these errors were encountered: