Skip to content

Conversation

@sdkrystian
Copy link
Member

@sdkrystian sdkrystian commented Jan 26, 2026

When a non-type template parameter has a type containing an undeduced placeholder type that is invalid (e.g., a function returning a function), SubstAutoTypeSourceInfoDependent can return null if the type is invalid. CheckNonTypeTemplateParameterType was not handling this case and would dereference the null pointer.

Fixes llvm#177545

SubstAutoTypeSourceInfoDependent can return null when transforming an
invalid type containing decltype(auto). Handle this case by returning
QualType() to signal failure.

Fixes llvm#177545
Copy link

@shafik shafik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good but this need a release note.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants