Files
clang-p2996/clang/test/Modules/Inputs/odr_using_dependent_name/foo.h
Chuanqi Xu c50a4b3f97 [Modules] Incorrect ODR detection for unresolved using type
Implement `getUnresolvedUsingType()` and don't create a new
`UnresolvedUsingType` when there is already canonical declaration.

This solved an incorrect ODR detection in modules for uresolved using
type.

Reviewed By: rjmccall

Differential Revision: https://reviews.llvm.org/D115792
2021-12-17 10:37:40 +08:00

10 lines
149 B
C++

template <class T>
struct bar {
using Ty = int;
};
template <class T>
struct foo : public bar<T> {
using typename bar<T>::Ty;
void baz(Ty);
};