-
Notifications
You must be signed in to change notification settings - Fork 698
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
Infinite recursion on small input with alignof #1590
Comments
If I replace
|
Similarly, if I make the input |
Still crashes when I remove the namespaces. (edited OP) |
Replacing |
That is a neat test-case. This seems to be a bug in libclang. I'm not sure how to work-around it in bindgen without regressing functionality. We can probably introduce a flag to avoid trying to evaluate undeduced types or something. I'll try to fix it upstream, but I'm afk-ish until next week at least. |
@emilio Do you have an upstream bug report? |
Just filed https://bugs.llvm.org/show_bug.cgi?id=42532. |
I sent https://reviews.llvm.org/D64409. Upon blaming a bit while trying to get a workaround, I found #284. This is basically an instance of the same bug, I should've asked for it to be fixed upstream before taking the workaround. I'll try to get a workaround that doesn't regress functionality somehow. |
…ssions. Using the canonical type makes it work across typedefs. Fixes rust-lang#1590
#1591 has an improvement over the existing workaround that also covers this case. |
…ssions. Using the canonical type makes it work across typedefs. Fixes rust-lang#1590
Ok, fixed upstream, workaround will merge as soon as it's green on Travis. Thanks for the report @jsgf :) |
…ssions. Using the canonical type makes it work across typedefs. Fixes rust-lang#1590
Just to clarify, is #1591 a workaround if https://reviews.llvm.org/D64409 isn't applied, or are they both needed? |
That's right, #1591 works around unpatched versions of LLVM / libclang. |
Input C/C++ Header
Reduced from 10M input - thanks creduce!
Bindgen Invocation
Current git / bindgen-0.5.0.
Actual Results
Backtrace shows:
Expected Results
Not crash.
The text was updated successfully, but these errors were encountered: