gcc/libstdc++-v3/testsuite
Jason Merrill 04eb9c5574 PR c++/67445 - returning temporary initializer_list.
PR c++/67711 - assigning from temporary initializer_list.
	PR c++/48562 - new initializer_list.
	* typeck.c (maybe_warn_about_returning_address_of_local): Also warn
	about returning local initializer_list.
	* cp-tree.h (AUTO_TEMP_NAME, TEMP_NAME_P): Remove.
	* call.c (build_over_call): Warn about assignment from temporary
	init_list.
	* init.c (build_new_1): Warn about 'new std::initializer_list'.
	(find_list_begin, maybe_warn_list_ctor): New.
	(perform_member_init): Use maybe_warn_list_ctor.

From-SVN: r260905
2018-05-29 16:04:52 -04:00
..
17_intro * testsuite/17_intro/names.cc: Undefine 'y' on SPARC/Linux. 2018-01-16 20:40:09 +00:00
18_support PR libstdc++/84773 use aligned alloc functions for FreeBSD and MinGW cross-compilers 2018-03-12 22:52:16 +00:00
19_diagnostics
20_util re PR libstdc++/80165 (Constexpr tuple of variant doesn't work) 2018-05-13 13:36:12 +03:00
21_strings PR libstdc++/84087 add default arguments to basic_string members (LWG 2268) 2018-05-03 16:01:20 +01:00
22_locale Fix std::codecvt_utf8<wchar_t> for Mingw 2018-05-19 03:03:42 +01:00
23_containers 2018-05-18 François Dumont <fdumont@gcc.gnu.org> 2018-05-18 20:49:49 +00:00
24_iterators safe_iterator.h (_Safe_iterator<>::_M_constant()): Rename in... 2018-05-09 20:04:46 +00:00
25_algorithms
26_numerics PR libstdc++/85749 constrain seed sequences for random number engines 2018-05-15 16:36:46 +01:00
27_io Refactor path construction from null terminated iterator ranges 2018-05-23 23:48:51 +01:00
28_regex PR libstdc++/85098 add missing definitions for static constants 2018-05-18 17:14:04 +01:00
29_atomics Implement P0558R2 changes to std::atomic 2018-05-24 16:28:26 +01:00
30_threads PR libstdc++/84535 constrain std::thread constructor 2018-05-03 15:08:36 +01:00
abi
backward Remove duplicate function call in test 2018-05-02 17:27:01 +01:00
config
data
decimal
experimental Refactor path construction from null terminated iterator ranges 2018-05-23 23:48:51 +01:00
ext PR libstdc++/85749 constrain seed sequences for random number engines 2018-05-15 16:36:46 +01:00
lib
libstdc++-abi
libstdc++-dg
libstdc++-prettyprinters printers.py (NodeIteratorPrinter): New. 2018-03-08 06:26:15 +00:00
libstdc++-xmethods
performance
special_functions PR libstdc++/83140 - assoc_legendre returns negated value when m is odd 2018-05-10 13:59:52 +00:00
tr1 ...and actually resture the *new* testcase. 2018-05-11 17:38:26 +00:00
tr2
util PR c++/67445 - returning temporary initializer_list. 2018-05-29 16:04:52 -04:00
Makefile.am
Makefile.in