[clang] [Clang] Fall back to DW_TAG_typedef for instantiation dependent template aliases (PR #90032)

David Blaikie via cfe-commits cfe-commits at lists.llvm.org
Fri May 3 10:21:21 PDT 2024


dwblaikie wrote:

> > Comment in the code should probably mention this as a FIXME and include a reference to the issue?
> 
> Sure, added in [f78949a](https://github.com/llvm/llvm-project/commit/f78949a07e33017a798c410a102c95455685a9b1)

Thanks!

> > Also, there's another bug here - the DW_TAG_typedef is in the CU scope, instead of the struct scope. But if the struct is a non-template, the typedef is in the struct scope as it should be, not the CU scope...
> 
> That does looks odd - I can reproduce it with normal (language-level) typedefs too (rather than with template aliases): https://godbolt.org/z/GsGKqhKzz. I can open a separate issue?

Yep!

https://github.com/llvm/llvm-project/pull/90032


More information about the cfe-commits mailing list