-
-
Notifications
You must be signed in to change notification settings - Fork 236
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
unexpected behavior when explicitly instantiating a template #123
Comments
Hello @matkatmusic, you are totally right. I have trouble with the AST matchers. A quick fix broke existing tests. I need to take a closer look and how to handle this. Andreas |
All right, I understood it. In the progress I found a second issue. Thanks for reporting the bug! |
This UB still exists. This issue should remain open until cppinsights displays the correct result. |
Hello @matkatmusic, can you be more specific? For what I see the output matches what you expect according to your initial post (and what I agree that it is correct). Maybe you checked to soon? After it appears as closed here it takes some time to do the build and upload it to the server. |
My fault, it is working as expected. I must have checked too soon after you fixed it. |
I'm not sure what the expected behavior is, but this snippet shows no template instantiation code being generated:
If you comment out the
template struct Person<int>;
it generates the expected template code.Any ideas on why this happens?
I was expecting to this:
The text was updated successfully, but these errors were encountered: