Skip to content

Commit

Permalink
fix: infinite recursion when identifying SFINAE types
Browse files Browse the repository at this point in the history
  • Loading branch information
sdkrystian committed Oct 1, 2024
1 parent e6205d5 commit 5750b79
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib/AST/ASTVisitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1716,6 +1716,11 @@ class ASTVisitor
return true;
continue;
}
// if the class inherits from itself, we can't determine whether
// it's a SFINAE type
if(declaresSameEntity(TD, sfinae_info->Template))
return true;

auto sfinae_result = isSFINAETemplate(
sfinae_info->Template, Member);
if(! sfinae_result)
Expand Down

0 comments on commit 5750b79

Please sign in to comment.