Skip to content

Commit c92048f

Browse files
committed
fbc: global overloaded operator procs need "_Z" mangling prefix
1 parent 0220433 commit c92048f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ Version 1.07.0
5353
- fbc uses '-march=armv8-a' instead of invalid option '-march=aarch64' when passing options to gcc/LLVM (czsgaba)
5454
- rtlib: sys/io.h incorrectly included on systems that do not provide it. It is used only for x86, x86_64 and is unnecessary for all other linux targets (armhf ,arm64, mips ....)
5555
- SELECT CASE AS CONST checks for ranges that would produce unreasonably large jump tables (greater than 8192 entries)
56+
- sf.net #907: global overloaded operator procs need "_Z" mangling prefix
5657

5758

5859
Version 1.06.0

src/compiler/symb-mangling.bas

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1195,7 +1195,8 @@ private sub hMangleProc( byval sym as FBSYMBOL ptr )
11951195
end if
11961196

11971197
'' C++ prefix
1198-
if( docpp ) then
1198+
'' global overloaded operators need the prefix
1199+
if( docpp or symbIsOperator( sym ) ) then
11991200
mangled += "_Z"
12001201
end if
12011202

0 commit comments

Comments
 (0)