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

Redundant typedef causes m2c to hang #247

Closed
r-burns opened this issue Jan 11, 2023 · 0 comments
Closed

Redundant typedef causes m2c to hang #247

r-burns opened this issue Jan 11, 2023 · 0 comments

Comments

@r-burns
Copy link
Contributor

r-burns commented Jan 11, 2023

I was having trouble decompiling on m2c using an autogenerated context header, which was causing the decompilation step to hang indefinitely. I was able to trim my context down to this minimal reproducer:

typedef int foo;
typedef foo foo;
struct bar {
    foo x;
};

I initially thought this was malformed code, but mwcc and GCC will happily compile it -- either way, I think m2c shouldn't hang on this. It seems like it's getting stuck while building the typemap.

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