[clang] [clang] SourceLocIdentKind::Function should not be dependent (PR #94942)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 10 03:46:16 PDT 2024
cor3ntin wrote:
SourceLocation needs to be dependent because we want to make the name of the function and any template parameter
refers to the instantiated function rather than that of the function template.
This was changed in https://github.com/llvm/llvm-project/pull/78436
The issue is that SourceLocation then is a dependent expression that does not depend on any parameters and its never re-transformed (hence the crash).
I have so far been unable to find a solution. I wonder if we should attach the template parameters to the source location expression, but that seems a bit involved.
https://github.com/llvm/llvm-project/pull/94942
More information about the cfe-commits
mailing list