llvm-project/clang/test/CXX
Richard Smith 7981004eb7 Improve diagnostics and error recovery for template name lookup.
For 'x::template y', consistently give a "no member named 'y' in 'x'"
diagnostic if there is no such member, and give a 'template keyword not
followed by a template' name error if there is such a member but it's not a
template. In the latter case, add a note pointing at the non-template.

Don't suggest inserting a 'template' keyword in 'X::Y<' if X is dependent
if the lookup of X::Y was actually not a dependent lookup and found only
non-templates.

llvm-svn: 332076
2018-05-11 02:43:08 +00:00
..
basic Add a "vexing parse" warning for ambiguity between a variable declaration and a 2017-09-29 23:57:25 +00:00
class Implement DR2229, which prohibits unnamed bit-fields from having qualifiers in C++. 2018-03-17 21:08:40 +00:00
class.access Switch from using a DiagnosticTrap and a note for "while defining a special 2017-05-25 22:47:05 +00:00
class.derived Add context note to diagnostics that occur while declaring an implicit special member function. 2017-02-23 21:43:43 +00:00
concepts-ts Remove old concepts parsing code 2017-12-07 00:34:20 +00:00
conv Driver: hoist the `wchar_t` handling to the driver 2017-10-06 23:09:55 +00:00
cpp/cpp.predefined
dcl.dcl Allow [[maybe_unused]] on static data members; these are considered variables and the attribute should appertain to them. 2018-04-12 12:21:41 +00:00
dcl.decl [Sema] Improve test coverage of narrowing conversion diagnostics 2018-03-02 10:03:02 +00:00
drs Improve diagnostics and error recovery for template name lookup. 2018-05-11 02:43:08 +00:00
except [Sema][Crash] Correctly handle an non-dependent noexcept expr in function template 2017-10-12 23:01:53 +00:00
expr P0620 follow-up: deducing `auto` from braced-init-list in new expr 2017-12-11 18:29:54 +00:00
lex
modules-ts Bring r325915 back. 2018-02-23 19:30:48 +00:00
over [Sema] Improve diagnostics for const- and ref-qualified member functions 2017-12-31 18:27:29 +00:00
special Fix typos in clang 2018-04-06 15:14:32 +00:00
stmt.stmt [C++17] Allow an empty expression in an if init statement 2018-03-17 21:42:10 +00:00
temp Parse A::template B as an identifier rather than as a template-id with no 2018-04-27 02:00:13 +00:00