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

I want to use reverse c++. but it doesn't work #12

Open
KudoLayton opened this issue Nov 8, 2015 · 2 comments
Open

I want to use reverse c++. but it doesn't work #12

KudoLayton opened this issue Nov 8, 2015 · 2 comments

Comments

@KudoLayton
Copy link

No description provided.

@niklauslee
Copy link
Collaborator

Please provide detailed information about the failure you experienced.

@robdotson
Copy link

robdotson commented Oct 26, 2016

There are a couple of bugs in the parser:

The 'class' type qualifier is not recognized on instance variables, or as parameters:

class foo {
    public: class foo * foo( class foo * f ) const { return f; }
};

In this case class foo * is required because there is a method named foo. This is an issue in many header only c++ packages, and is especially pernicious with forward decls, and with external subsystems like bison.

Visibility statements won't work if there is nothing in between (or if they are made in visible by the preprocessor or comments:

class foo {
protected:
    // nothing here!
public:
    virtual void bar() const;
};

That code is totally valid and should not generate an error. The empty protected: statement should just be interpreted as a null statement.

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

3 participants