Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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
@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