You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cabal run hs-bindgen -- preprocess -I. -i foo.h
PANIC!: the impossible happened
Please report this as a bug at https://github.com/well-typed/hs-bindgen/issues/
fromMacroType: 'PrimTyTyCon'
CallStack (from HasCallStack):
panicPure, called at src/HsBindgen/C/Tc/Macro.hs:1165:26 in hs-bindgen-0.1.0-inplace:HsBindgen.C.Tc.Macro
This looks more like a TODO, not sure what's is missing though.
The text was updated successfully, but these errors were encountered:
The problem here is that int* gets reparsed as multiplication of the type int with the empty term, which is ill-kinded and then the macro typechecker code falls over. I will fix.
In #470 I'm changing the parser slightly so that it fails to parse instead of parsing as "int times empty". We don't want to accept something like:
#defineX 3+
However, we do want to accept the example in this ticket. I think the correct way forward is to have two separate macro parsers: one for expressions, and one for types.
After #451, we get:
This looks more like a TODO, not sure what's is missing though.
The text was updated successfully, but these errors were encountered: