fbc icon indicating copy to clipboard operation
fbc copied to clipboard

bop-cpp test fails when using clang as the compiler

Open Markos-Th09 opened this issue 1 year ago • 0 comments

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 avatar Sep 20 '24 12:09 Markos-Th09