-
Notifications
You must be signed in to change notification settings - Fork 746
Invalid rust syntax in generated constants #582
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
Reduced test case: #define INFINITY (1.0f/0.0f)
#define NAN (0.0f/0.0f) |
@emilio, thanks for simplifying the test case. I haven't looked through the |
No worries! Fix over #583. |
bors-servo
pushed a commit
that referenced
this issue
Mar 15, 2017
ir: Ignore non-finite macro constants from macros. Fixes #582.
bors-servo
pushed a commit
that referenced
this issue
Mar 15, 2017
ir: Ignore non-finite macro constants from macros. Fixes #582.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Input C/C++ Header
Bindgen Invokation
Actual Results
Expected Results
Bindgen shouldn't generate invalid syntax when declaring the two 32-bit float constants. That exact same
C
header file compiles fine when using Clang:I am trying to generate bindings for radare2.
radare2
was installed from source and its include files are put in/usr/include/libr
.RUST_LOG=bindgen
Output(output is identical to
Actual Results
section)Miscellaneous Other Details
rustc:
rustc 1.17.0-nightly (6f10e2f63 2017-03-14)
cargo:
cargo 0.18.0-nightly (4a3c0a63b 2017-03-12)
bindgen:
0.22.1
llvm:
3.9.1
target triple:
x86_64-unknown-linux-gnu
OS:
Arch Linux
The text was updated successfully, but these errors were encountered: