-
-
Notifications
You must be signed in to change notification settings - Fork 68
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
NullReferenceException when parsing instantiation of a previously partially specialised template #77
Comments
@fangfang1984 as you have changed that code recently, maybe that's something you would have an interest to check/fix? |
Ok, I will try to fix it. |
I've attempted to reproduce this error on the latest CppAst.Net and found that the issue has already been fixed in recent adjustments. The TemplatePartialSpecialized should work properly in the new code. Please try again with the latest code, the corresponding 'foobar' field should now be recognized correctly. |
This is an excellent sample code for verifying whether partial template specialization works correctly, i will try to add it to tests code. |
Releasing the latest commit, forgot to do it. |
I've just added the sample code for partial specialized template and related feature enhancements, and submitted a PR (Pull Request). |
Parsing the following code causes a NullReferenceException:
CppModelBuilder.GetOrCreateDeclarationContainer
doesn't handleClassTemplatePartialSpecialization
cursors. This causes it to return null, which later causes the exception when trying to create a declaration container for the instantiation.The text was updated successfully, but these errors were encountered: