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

Add wrappers for ParmVarDecl::hasUnparsedDefaultArg and ParmVarDecl::hasUninstantiatedDefaultArg #546

Merged
merged 1 commit into from
May 2, 2024

Conversation

dpaoliello
Copy link
Contributor

@dpaoliello dpaoliello commented Apr 30, 2024

Before calling ParmVarDecl::getDefaultArg() you need to check hasDefaultArg() AND !hasUnparsedDefaultArg() && !hasUninstantiatedDefaultArg(), so make sure that all these functions are exposed via the wrapper.

@dpaoliello dpaoliello changed the title Fix crash when using a default argument from a base template Part 1: Fix crash when using a default argument from a base template (update native code) Apr 30, 2024
@dpaoliello dpaoliello marked this pull request as ready for review April 30, 2024 19:58
@dpaoliello dpaoliello changed the title Part 1: Fix crash when using a default argument from a base template (update native code) Add wrappers for ParmVarDecl::hasUnparsedDefaultArg and ParmVarDecl::hasUninstantiatedDefaultArg May 1, 2024
@tannergooding tannergooding merged commit 7eb68ba into dotnet:main May 2, 2024
13 checks passed
@dpaoliello dpaoliello deleted the uninst branch May 2, 2024 16:55
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

Successfully merging this pull request may close these issues.

2 participants