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

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

Open
AngheloAlf opened this issue Mar 24, 2024 · 0 comments

Comments

@AngheloAlf
Copy link
Contributor

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

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