llvm-project/clang/test/CXX
Zhihao Yuan 2c5471ddc7 [C++17] Fix class template argument deduction for default constructors without an initializer
Summary:
As the title says, this makes following code compile:

```
template<typename> struct Foo {};
Foo() -> Foo<void>;

Foo f; // ok
```

Thanks Nicolas Lesser for coining the fix.

Reviewers: rsmith, lichray

Reviewed By: rsmith, lichray

Subscribers: lichray, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D38216

llvm-svn: 328409
2018-03-24 04:32:11 +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 P0035R4: add predefined __STDCPP_DEFAULT_NEW_ALIGNMENT__ macro. By default, we 2016-09-30 22:41:36 +00:00
dcl.dcl [C++17] Fix class template argument deduction for default constructors without an initializer 2018-03-24 04:32:11 +00:00
dcl.decl [Sema] Improve test coverage of narrowing conversion diagnostics 2018-03-02 10:03:02 +00:00
drs Implement DR2229, which prohibits unnamed bit-fields from having qualifiers in C++. 2018-03-17 21:08:40 +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 Convert test/CXX/lex/lex.literal/lex.string/p4.cpp back to DOS line 2016-01-04 10:17:48 +00:00
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 tracking of whether a destructor would be deleted. 2017-09-22 01:04:22 +00:00
stmt.stmt [C++17] Allow an empty expression in an if init statement 2018-03-17 21:42:10 +00:00
temp Implement C++ DR727, which permits explicit specializations at class scope. 2018-03-16 13:36:56 +00:00