-
Notifications
You must be signed in to change notification settings - Fork 745
Segmentation fault in libclang
< 5.0 under clang_getFieldDeclBitWidth
#1006
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
Comments
Looks like this is crashing inside of
|
Cannot repro on clang 5.0, fwiw. |
libclang
< 5.0 under clang_getFieldDeclBitWidth
I think this should be closed. As I understand, bindgen now requires Clang 6.0 or later. |
It doesn't really require it, we test on libclang 3.8+. Maybe we should lift some of those requirements though. |
Eh oh. My statement was based on dependency to clang-sys with clang_6_0 feature enabled. I stand corrected, but can you explain what's going on here? |
I see clang_6_0 feature was added in #1289. |
clang_6_0 means that we can optionally use the APIs libclang 6.0 provides, but we runtime-detect them like this |
Since this issue disappears at clang 5.0, this issue can probably be closed if and when #2166 merges. |
Since #2166 merged, I am closing the current issue. |
The hashtag for my bindgen version is 4dd4ac7 .
$ rust-bindgen/target/debug/bindgen abc.h -- -x c++ -std=c++14
The header file compiles with clang++ with or without c++14 flag.
$ clang++ -Weverything abc.h
$ cat abc.h
The text was updated successfully, but these errors were encountered: