Go to file
Jonathan Wakely 5e3a1ea3d8 libstdc++: Fix missing members in std::allocator<void>
The changes in 75c6a925da were slightly
incorrect, because the converting constructor should be noexcept, and
the POCMA and is_always_equal traits should still be present in C++20.
This fixes it, and slightly refactors the preprocessor conditions and
order of members. Also add comments explaining things.

The non-standard construct and destroy members added for PR 78052 can be
private if allocator_traits<allocator<void>> is made a friend.

libstdc++-v3/ChangeLog:

	* include/bits/allocator.h (allocator<void>) [C++20]: Add
	missing noexcept to constructor. Restore missing POCMA and
	is_always_equal_traits.
	[C++17]: Make construct and destroy members private and
	declare allocator_traits as a friend.
	* include/bits/memoryfwd.h (allocator_traits): Declare.
	* include/ext/malloc_allocator.h (malloc_allocator::allocate):
	Add nodiscard attribute. Add static assertion for LWG 3307.
	* include/ext/new_allocator.h (new_allocator::allocate): Add
	static assertion for LWG 3307.
	* testsuite/20_util/allocator/void.cc: Check that converting
	constructor is noexcept. Check for propagation traits and
	size_type and difference_type. Check that pointer and
	const_pointer are gone in C++20.
2021-05-11 16:11:01 +01:00
INSTALL
c++tools Daily bump. 2021-05-11 00:16:36 +00:00
config Daily bump. 2021-05-04 00:16:53 +00:00
contrib Remove libhsail-rt. 2021-05-11 15:13:30 +02:00
fixincludes
gcc preprocessor: Enable digit separators for C2X 2021-05-11 14:25:55 +00:00
gnattools Daily bump. 2021-05-08 00:16:27 +00:00
gotools Daily bump. 2021-02-03 00:16:23 +00:00
include Daily bump. 2021-05-07 00:16:33 +00:00
intl Daily bump. 2021-04-17 00:16:25 +00:00
libada
libatomic Daily bump. 2021-01-16 00:16:29 +00:00
libbacktrace Daily bump. 2021-05-04 00:16:53 +00:00
libcc1 Daily bump. 2021-05-06 00:16:37 +00:00
libcody Daily bump. 2021-04-07 00:16:39 +00:00
libcpp preprocessor: Enable digit separators for C2X 2021-05-11 14:25:55 +00:00
libdecnumber Daily bump. 2021-05-04 00:16:53 +00:00
libffi
libgcc Daily bump. 2021-05-11 00:16:36 +00:00
libgfortran Daily bump. 2021-05-06 00:16:37 +00:00
libgo libgo: update to Go1.16.3 release 2021-04-12 15:23:16 -07:00
libgomp openmp: Fix up taskloop reduction ICE if taskloop has no iterations [PR100471] 2021-05-11 09:07:47 +02:00
libiberty Daily bump. 2021-05-07 00:16:33 +00:00
libitm Daily bump. 2021-01-16 00:16:29 +00:00
libobjc
liboffloadmic
libphobos Daily bump. 2021-05-11 00:16:36 +00:00
libquadmath
libsanitizer Daily bump. 2021-04-18 00:16:21 +00:00
libssp
libstdc++-v3 libstdc++: Fix missing members in std::allocator<void> 2021-05-11 16:11:01 +01:00
libvtv
lto-plugin Daily bump. 2021-05-11 00:16:36 +00:00
maintainer-scripts Daily bump. 2021-04-21 00:16:23 +00:00
zlib
.dir-locals.el
.gitattributes
.gitignore
ABOUT-NLS
COPYING
COPYING.LIB
COPYING.RUNTIME
COPYING3
COPYING3.LIB
ChangeLog Daily bump. 2021-05-05 00:16:54 +00:00
ChangeLog.jit
ChangeLog.tree-ssa
MAINTAINERS Remove dead components from MAINTAINERS. 2021-05-11 15:13:44 +02:00
Makefile.def Remove libhsail-rt. 2021-05-11 15:13:30 +02:00
Makefile.in Remove libhsail-rt. 2021-05-11 15:13:30 +02:00
Makefile.tpl Add -fprofile-reproducible=parallel-runs to STAGEfeedback_CFLAGS to Makefile.tpl. 2021-03-11 16:18:56 +01:00
README
ar-lib
compile
config-ml.in
config.guess config.sub, config.guess : Import upstream 2021-01-25. 2021-02-23 17:21:10 +08:00
config.rpath
config.sub config.sub, config.guess : Import upstream 2021-01-25. 2021-02-23 17:21:10 +08:00
configure Remove libhsail-rt. 2021-05-11 15:13:30 +02:00
configure.ac Remove libhsail-rt. 2021-05-11 15:13:30 +02:00
depcomp
install-sh
libtool-ldflags
libtool.m4
ltgcc.m4
ltmain.sh
ltoptions.m4
ltsugar.m4
ltversion.m4
lt~obsolete.m4
missing
mkdep
mkinstalldirs
move-if-change
multilib.am
symlink-tree
test-driver
ylwrap

README

This directory contains the GNU Compiler Collection (GCC).

The GNU Compiler Collection is free software.  See the files whose
names start with COPYING for copying permission.  The manuals, and
some of the runtime libraries, are under different terms; see the
individual source files for details.

The directory INSTALL contains copies of the installation information
as HTML and plain text.  The source of this information is
gcc/doc/install.texi.  The installation information includes details
of what is included in the GCC sources and what files GCC installs.

See the file gcc/doc/gcc.texi (together with other files that it
includes) for usage and porting information.  An online readable
version of the manual is in the files gcc/doc/gcc.info*.

See http://gcc.gnu.org/bugs/ for how to report bugs usefully.

Copyright years on GCC source files may be listed using range
notation, e.g., 1987-2012, indicating that every year in the range,
inclusive, is a copyrightable year that could otherwise be listed
individually.