decompals / wibo

Quick-and-dirty wrapper that tries to run 32-bit Windows command-line executables on Linux
MIT License
57 stars 19 forks source link

wibo segfaults on `cc1plus.exe` of "GCC SN 2.73a for PS2" if a C++ class is duplicated #74

Open AngheloAlf opened 7 months ago

AngheloAlf commented 7 months ago

Minimal reproducer:

Save this file as test.cpp

class RenderFlow {
public:
    static RenderFlow *GetInstance(void);
};

class RenderFlow {
public:
    static void CreateInstance();
};

Run

$ wibo lib/gcc-lib/ee/2.95.2/cc1plus.exe  test.cpp  -o test.s
Segmentation fault (core dumped)

The expected output is the following (via wine):

test.cpp:7: redefinition of `class RenderFlow'
test.cpp:5: previous definition here
test.cpp:10: confused by earlier errors, bailing out

WIBO_DEBUG=1 logs: wibo_logs.txt

The compiler is hosted here: https://github.com/AngheloAlf/SN-Systems-ProDG_for_PS2_2.0/releases/latest