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

StackOverflowError caused by method call “getType()” #893

Open
XrazYang opened this issue Aug 27, 2024 · 0 comments
Open

StackOverflowError caused by method call “getType()” #893

XrazYang opened this issue Aug 27, 2024 · 0 comments

Comments

@XrazYang
Copy link

XrazYang commented Aug 27, 2024

Describe the bug
branch:CDT_11_6
jdk: 21
StackOverflowError caused by method call “getType()”

Test case

for (const auto& [destination, sources] : sourcesForDestination)
            for (const auto& source : sources)
                //todo

** scene trigger **

var1.accept(new ASTVisitor(true) {
            @Override
            public int visit(IASTName name) {
                IBinding binding = name.resolveBinding();
                 if (binding instanceof IVariable var) {
                    System.out.println(var.getType());  // When name = "destination", an exception "StackOverflowError" is triggered.
                return super.visit(name);
            }
        });

Q&A
a. Whether “branch CDT_11_6” supports C++17 features?

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