llvm-project/clang/test/CXX/dcl.dcl/dcl.spec
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
..
dcl.constexpr Implement C++17 P0386R2, inline variables. (The 'inline' specifier gives a 2016-06-25 00:15:56 +00:00
dcl.fct.spec Improve diagnostics if friend function redefines file-level function. 2017-06-08 06:07:07 +00:00
dcl.inline Implement C++17 P0386R2, inline variables. (The 'inline' specifier gives a 2016-06-25 00:15:56 +00:00
dcl.stc Fix missing -Wregister warning when 'register' is applied to a function parameter. 2017-11-01 23:38:37 +00:00
dcl.type [C++17] Fix class template argument deduction for default constructors without an initializer 2018-03-24 04:32:11 +00:00
dcl.typedef Push alias-declarations and alias-template declarations into scope even if 2016-07-15 20:53:25 +00:00