This reverts commit 3bf96b0329.
It causes crashes as reported in PR52257 and a few other places. A reproducer is bundled with this commit to verify any fix forward. The original test is left in place, but marked XFAIL as it now produces the wrong result.
Reviewed By: teemperor
Differential Revision: https://reviews.llvm.org/D113449
13 lines
205 B
C++
13 lines
205 B
C++
template <typename> struct pair {};
|
|
struct A {
|
|
using iterator = pair<char *>;
|
|
pair<char *> a_[];
|
|
};
|
|
struct B {
|
|
using iterator = A::iterator;
|
|
iterator begin();
|
|
A *tag_set_;
|
|
};
|
|
B b;
|
|
int main() {};
|