]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Add missing header to <bits/stl_iterator.h>
authorJonathan Wakely <jwakely@redhat.com>
Fri, 26 Nov 2021 00:34:52 +0000 (00:34 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 26 Nov 2021 12:50:38 +0000 (12:50 +0000)
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

index ae971ba12a1ad3a4d3089a72b070260bdaaa492b..8857813e691daf3f6242ba5236db6d45b5dbd071 100644 (file)
@@ -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>