Skip to content

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

@AngheloAlf

Description

@AngheloAlf

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions