Michael137 wrote:

Yea this even works when the typedef is not template-dependent but used outside 
of the class only:
```
template <typename T = int>
struct Y {                 
  typedef int outside;     
  int o;                   
};                         
                           
Y<> y;                     
Y<>::outside g;           
```

Again, in this case the `TypedefDecl`s `DeclContext` is the 
`ClassTemplateSpecializationDecl`. So why is it only an issue when the typedef 
is not template-dependent but is used as the type of a field?

https://github.com/llvm/llvm-project/pull/146729
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to