llvm-project/clang/test/CXX/temp
Richard Smith afcfb6bc3a Fix implementation of [temp.local]p4.
When a template-name is looked up, we need to give injected-class-name
declarations of class templates special treatment, as they denote a
template rather than a type.

Previously we achieved this by applying a filter to the lookup results
after completing name lookup, but that is incorrect in various ways, not
least of which is that it lost all information about access and how
members were named, and the filtering caused us to generally lose
all ambiguity errors between templates and non-templates.

We now preserve the lookup results exactly, and the few places that need
to map from a declaration found by name lookup into a declaration of a
template do so explicitly. Deduplication of repeated lookup results of
the same injected-class-name declaration is done by name lookup instead
of after the fact.

This reinstates r354091, which was previously reverted in r354097
because it exposed bugs in lldb and compiler-rt. Those bugs were fixed
in r354173 and r354174 respectively.

llvm-svn: 354176
2019-02-15 21:53:07 +00:00
..
temp.arg Fix all tests under test/CXX (and test/Analysis) to pass if clang's default 2016-08-31 23:24:08 +00:00
temp.decls Fix implementation of [temp.local]p4. 2019-02-15 21:53:07 +00:00
temp.deduct.guide Implement C++ DR727, which permits explicit specializations at class scope. 2018-03-16 13:36:56 +00:00
temp.fct.spec PR38136: improve handling of template argument deduction of non-trailing 2018-07-12 23:32:39 +00:00
temp.names
temp.param [NFC] Test commit: tweak whitespace in comment 2018-12-17 19:53:22 +00:00
temp.res Parse A::template B as an identifier rather than as a template-id with no 2018-04-27 02:00:13 +00:00
temp.spec P0859R0: List-initialization is potentially-constant-evaluated and 2018-09-26 04:36:55 +00:00
temp.type
p3.cpp