We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using g++ (Ubuntu 13.2.0-23ubuntu4) 13.2.0 gives
g++ (Ubuntu 13.2.0-23ubuntu4) 13.2.0
antlr4/tree/ParseTree.h:50:18: warning: ‘virtual bool antlr4::tree::ParseTree::operator==(const antlr4::tree::ParseTree&) const’ was hidden [-Woverloaded-virtual=] 50 | virtual bool operator == (const ParseTree &other) const; | ^~~~~~~~ antlr4/RuleContext.h:135:10: note: by ‘bool antlr4::RuleContext::operator==(const antlr4::RuleContext&)’ 135 | bool operator == (const RuleContext &other) { return this == &other; } // Simple address comparison.
The operator== in RuleContext seems redundant, as the virtual one in ParseTree performs the same check?
operator==
Proposed fix: remove this line:
antlr4/runtime/Cpp/runtime/src/RuleContext.h
Line 135 in 1855d9a
The text was updated successfully, but these errors were encountered:
Have you solved that? I face the same problem.
Sorry, something went wrong.
Yes, just remove the line above (135 in Rulecontext.h) as it does nothing different from the virtual method it reimplements.
No branches or pull requests
Using
g++ (Ubuntu 13.2.0-23ubuntu4) 13.2.0
givesThe
operator==
in RuleContext seems redundant, as the virtual one in ParseTree performs the same check?Proposed fix: remove this line:
antlr4/runtime/Cpp/runtime/src/RuleContext.h
Line 135 in 1855d9a
The text was updated successfully, but these errors were encountered: