diff mbox series

[committed] libstdc++: Add missing header to <bits/stl_iterator.h>

Message ID 20211126125541.1663865-1-jwakely@redhat.com
State Committed
Headers show
Series [committed] libstdc++: Add missing header to <bits/stl_iterator.h> | expand

Commit Message

Jonathan Wakely Nov. 26, 2021, 12:55 p.m. UTC
Tested powerpc64le-linux, pushed to gcc-10.


When included from <debug/functions.h> it's possible for
<bits/stl_iterator.h> to be included without its prerequisites having
been included first. For gcc-11 this was fixed as part of r11-7604, this
fixes it for gcc-10 too.

libstdc++-v3/ChangeLog:

	* include/bits/stl_iterator.h: Include required header for
	std::iterator class template and iterator category tags.
---
 libstdc++-v3/include/bits/stl_iterator.h | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/libstdc++-v3/include/bits/stl_iterator.h b/libstdc++-v3/include/bits/stl_iterator.h
index ae971ba12a1..8857813e691 100644
--- a/libstdc++-v3/include/bits/stl_iterator.h
+++ b/libstdc++-v3/include/bits/stl_iterator.h
@@ -61,6 +61,7 @@ 
 #define _STL_ITERATOR_H 1
 
 #include <bits/cpp_type_traits.h>
+#include <bits/stl_iterator_base_types.h>
 #include <ext/type_traits.h>
 #include <bits/move.h>
 #include <bits/ptr_traits.h>