Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Using static_assert gives "implicit declaration of a function" error #130

Open
tekknolagi opened this issue Jul 5, 2023 · 0 comments
Open

Comments

@tekknolagi
Copy link

tekknolagi commented Jul 5, 2023

First: love the project. It's so cool. Thank you for building it and building it the way you did.

I have included a minimal repro below.

hickory% cat test.c 
#include <assert.h>

int main() {
  static_assert(3 < 4, "hello");
}
hickory% ../chibicc/chibicc test.c
/usr/include/assert.h:143: # define static_assert _Static_assert
                                                  ^ implicit declaration of a function
hickory% gcc test.c 
hickory% 
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant