diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2019-01-16 22:01:39 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2019-01-16 22:01:39 +0000 |
commit | 58bd01fcb63b9e2fc1117dce15b9d924cc60e171 (patch) | |
tree | 67b48f2f51ac1ec07f951611fe542f4c97733408 /lldb/packages/Python/lldbsuite/test/expression_command/anonymous-struct/main.cpp | |
parent | 59abdf5f3fea8becf17618ba54e25948b715f84c (diff) | |
download | bcm5719-llvm-58bd01fcb63b9e2fc1117dce15b9d924cc60e171.tar.gz bcm5719-llvm-58bd01fcb63b9e2fc1117dce15b9d924cc60e171.zip |
PR40329: [adl] Fix determination of associated classes when searching a
member enum and then its enclosing class.
There are situations where ADL will collect a class but not the complete
set of associated classes / namespaces of that class. When that
happened, and we later tried to collect those associated classes /
namespaces, we would previously short-circuit the lookup and not find
them. Eg, for:
struct A : B { enum E; };
if we first looked for associated classes/namespaces of A::E, we'd find
only A. But if we then tried to also collect associated
classes/namespaces of A (which should include the base class B), we
would not add B because we had already visited A.
This also fixes a minor issue where we would fail to collect associated
classes from an overloaded class member access expression naming a
static member function.
llvm-svn: 351382
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/expression_command/anonymous-struct/main.cpp')
0 files changed, 0 insertions, 0 deletions