Skip to content
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

bop-cpp test fails when using clang as the compiler #431

Open
Markos-Th09 opened this issue Sep 20, 2024 · 0 comments
Open

bop-cpp test fails when using clang as the compiler #431

Markos-Th09 opened this issue Sep 20, 2024 · 0 comments

Comments

@Markos-Th09
Copy link

Unlike g++, clang uses the c++ mangling scheme for operators even when extern "C". For example

extern "C" {
UDT_C_DEFAULT operator+( UDT_C_DEFAULT const& lhs, UDT_C_DEFAULT const& rhs ){exec_bop( UDT_C_DEFAULT, + ) }
}

will become _Zpl when using g++, while clang will generate _ZplRK13UDT_C_DEFAULTS1_ (normal c++ mangling scheme)

I don't know how freebasic should handle this inconsistent behavior

@Markos-Th09 Markos-Th09 changed the title bop-cpp test fails when using clang++ as the compiler bop-cpp test fails when using clang as the compiler Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant