summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2022-09-21 00:46:04 +0100
committerJonathan Wakely <jwakely@redhat.com>2022-09-21 08:42:00 +0100
commit26cb69f8b4b9fb46444d164c8edcb73ac5fb2c47 (patch)
tree4d172055243bd01d2280cd6eb3202b7de89b1747
parent5e4f5c25d62d2f7853adebeabf1888eca8140b09 (diff)
downloadgcc-26cb69f8b4b9fb46444d164c8edcb73ac5fb2c47.tar.gz
libstdc++: Add <initializer_list> to ranges_base.h header
The header should be included explicitly to use std::initializer_list. With the upcoming changes to make <ranges> available for freestanding this becomes an error, because <initializer_list> is no longer provided by any of the other headers involved here. libstdc++-v3/ChangeLog: * include/bits/ranges_base.h: Include <initializer_list>.
-rw-r--r--libstdc++-v3/include/bits/ranges_base.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libstdc++-v3/include/bits/ranges_base.h b/libstdc++-v3/include/bits/ranges_base.h
index 866d7c56cbc..805f196cc9f 100644
--- a/libstdc++-v3/include/bits/ranges_base.h
+++ b/libstdc++-v3/include/bits/ranges_base.h
@@ -33,6 +33,7 @@
#pragma GCC system_header
#if __cplusplus > 201703L
+#include <initializer_list>
#include <bits/iterator_concepts.h>
#include <ext/numeric_traits.h>
#include <bits/max_size_type.h>