llvm-project/clang/test/CXX
Zhihao Yuan 00c9dfdfd0 P0620 follow-up: deducing `auto` from braced-init-list in new expr
Summary:
This is a side-effect brought in by p0620r0, which allows other placeholder types (derived from `auto` and `decltype(auto)`) to be usable in a `new` expression with a single-clause //braced-init-list// as its initializer (8.3.4 [expr.new]/2).  N3922 defined its semantics.

References:
 http://wg21.link/p0620r0
 http://wg21.link/n3922

Reviewers: rsmith, aaron.ballman

Reviewed By: rsmith

Subscribers: cfe-commits

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

llvm-svn: 320401
2017-12-11 18:29:54 +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 Don't warn about runtime behavior problems in variable initializers that we 2017-09-23 18:27:11 +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 Determine the attribute subject for diagnostics based on declarative information in DeclNodes.td. This greatly reduces the number of enumerated values used for more complex diagnostics; these are now only required when the "attribute only applies to" diagnostic needs to be generated manually as part of semantic processing. 2017-11-26 20:01:12 +00:00
dcl.decl Do not inherit default arguments for friend function in class template. 2017-06-08 06:31:19 +00:00
drs Preserve the "last diagnostic was suppressed" flag across SFINAE checks. 2017-11-30 08:18:21 +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 [Modules TS] Added module re-export support. 2017-11-21 09:42:42 +00:00
over [C++17] Fix PR34970 - tweak overload resolution for class template deduction-guides in line with WG21's p0620r0. 2017-10-22 14:45:08 +00:00
special Fix tracking of whether a destructor would be deleted. 2017-09-22 01:04:22 +00:00
stmt.stmt Replace remaining user-visible mentions of C++1z with C++17. 2017-08-13 22:26:53 +00:00
temp Do not look through pack expansions when looking for unexpanded parameter packs. 2017-08-15 22:58:45 +00:00