gcc/libstdc++-v3
Jonathan Wakely 7918cb93f6 libstdc++: Make istreambuf_iterator base class consistent (PR92285)
Since LWG 445 was implemented for GCC 4.7, the std::iterator base class
of std::istreambuf_iterator changes type depending on the -std mode
used. This creates an ABI incompatibility between different -std modes.

This change ensures the base class always has the same type. This makes
layout for C++98 compatible with the current -std=gnu++14 default, but
no longer compatible with C++98 code from previous releases. In practice
this is unlikely to cause real problems, because it only affects the
layout of types with two std::iterator base classes, one of which comes
from std::istreambuf_iterator. Such types are expected to be vanishingly
rare.

	PR libstdc++/92285
	* include/bits/streambuf_iterator.h (istreambuf_iterator): Make type
	of base class independent of __cplusplus value.
	[__cplusplus < 201103L] (istreambuf_iterator::reference): Override the
	type defined in the base class
	* testsuite/24_iterators/istreambuf_iterator/92285.cc: New test.
	* testsuite/24_iterators/istreambuf_iterator/requirements/
	base_classes.cc: Adjust expected base class for C++98.

From-SVN: r280116
2020-01-10 15:27:39 +00:00
..
config libstdc++: Define memory resource key functions non-inline (PR93208) 2020-01-09 13:18:20 +00:00
doc rename local _C2 identifiers in stl map header files 2020-01-09 23:00:50 +00:00
include libstdc++: Make istreambuf_iterator base class consistent (PR92285) 2020-01-10 15:27:39 +00:00
libsupc++ libstdc++: Define __cpp_lib_three_way_comparison conditionally 2020-01-06 12:06:41 +00:00
po Update copyright years. 2020-01-01 12:51:42 +01:00
python Update copyright years. 2020-01-01 12:51:42 +01:00
scripts Update copyright years. 2020-01-01 12:51:42 +01:00
src libstdc++: Define memory resource key functions non-inline (PR93208) 2020-01-09 13:18:20 +00:00
testsuite libstdc++: Make istreambuf_iterator base class consistent (PR92285) 2020-01-10 15:27:39 +00:00
acinclude.m4 VxWorks has_nanosleep for libstdc++ enable-libstdcxx-time auto 2019-12-30 22:36:14 +00:00
aclocal.m4
ChangeLog libstdc++: Make istreambuf_iterator base class consistent (PR92285) 2020-01-10 15:27:39 +00:00
ChangeLog-1998
ChangeLog-1999
ChangeLog-2000
ChangeLog-2001
ChangeLog-2002
ChangeLog-2003
ChangeLog-2004
ChangeLog-2005
ChangeLog-2006
ChangeLog-2007
ChangeLog-2008
ChangeLog-2009
ChangeLog-2010
ChangeLog-2011
ChangeLog-2012
ChangeLog-2013
ChangeLog-2014
ChangeLog-2015
ChangeLog-2016
ChangeLog-2017
ChangeLog-2018 Update copyright years. 2019-01-01 13:31:55 +01:00
ChangeLog-2019 libstdc++: Fix whitespace in ChangeLog-2019 2020-01-09 21:31:35 +00:00
config.h.in libstdc++: Add full steady_clock support to shared_timed_mutex 2019-12-02 16:23:10 +00:00
configure VxWorks has_nanosleep for libstdc++ enable-libstdcxx-time auto 2019-12-30 22:36:14 +00:00
configure.ac libstdc++: Add full steady_clock support to shared_timed_mutex 2019-12-02 16:23:10 +00:00
configure.host [ARM/FDPIC v6 24/24] [ARM] FDPIC: Handle arm*-*-uclinuxfdpiceabi in libstdc++ configure scripts 2019-09-10 10:13:20 +02:00
crossconfig.m4 Define HAVE_ for math long double functions declared in vxworks headers 2019-12-25 06:43:22 +00:00
fragment.am
linkage.m4
Makefile.am Update copyright years. 2020-01-01 12:51:42 +01:00
Makefile.in PR libstdc++/89466 avoid slow xsltproc command in configure 2019-02-27 11:25:44 +00:00
README

file: libstdc++-v3/README

New users may wish to point their web browsers to the file
index.html in the 'doc/html' subdirectory.  It contains brief
building instructions and notes on how to configure the library in
interesting ways.