summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/lang/cpp/namespace/TestNamespaceLookup.py
diff options
context:
space:
mode:
authorSerge Pavlov <sepavloff@gmail.com>2016-06-10 04:39:07 +0000
committerSerge Pavlov <sepavloff@gmail.com>2016-06-10 04:39:07 +0000
commite50bf75196e4145ed88e58f92fc8387e9d85b9fa (patch)
tree082009c749b6bccede003ecf335aeb33b90344bd /lldb/packages/Python/lldbsuite/test/lang/cpp/namespace/TestNamespaceLookup.py
parentb52765c5a44db1816ad4e448e2e4c4445e496121 (diff)
downloadbcm5719-llvm-e50bf75196e4145ed88e58f92fc8387e9d85b9fa.tar.gz
bcm5719-llvm-e50bf75196e4145ed88e58f92fc8387e9d85b9fa.zip
Fix recognition of shadowed template parameter
Crash reported in PR28023 is caused by the fact that non-type template parameters are found by tag name lookup. In the code provided in that PR: template<int V> struct A { struct B { template <int> friend struct V; }; }; the template parameter V is found when lookup for redeclarations of 'struct V' is made. Latter on the error about shadowing of 'V' is emitted but the semantic context of 'struct V' is already determined wrong: 'struct A' instead of translation unit. The fix moves the check for shadowing toward the beginning of the method and thus prevents from wrong context calculations. This change fixes PR28023. llvm-svn: 272366
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lang/cpp/namespace/TestNamespaceLookup.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud