[clang] Fix scope of typedefs present inside a template class (PR #146729)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 17 09:06:49 PDT 2025
ykhatav wrote:
> `DW_TAG_template_alias` suffer from the same issue?
It does not look like template_alias has the same issue, although I am not very familiar with template_alias types. I tried a small example where the scope is set correctly:
template<int I>
struct S {
template <int>
using A = int;
using AA = A<I>;
AA aa;
};
!5 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "S", file: !3, line: 3, size: 32, flags: DIFlagTypePassByValue, elements: !6, templateParams: !13, identifier: "_ZTS1SILi0EE")
!DIDerivedType(tag: DW_TAG_template_alias, name: "A", scope: !5, file: !3, line: 5, baseType: !10, extraData: !11)
https://github.com/llvm/llvm-project/pull/146729
More information about the cfe-commits
mailing list