Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
node
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
certo
node
Commits
986d5dfe
Commit
986d5dfe
authored
Oct 20, 2025
by
Vladimir Bashkirtsev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated GCC11 fix
parent
fabd9826
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
node-v24.10.0-fix_gcc11.patch
node-v24.10.0-fix_gcc11.patch
+9
-7
No files found.
node-v24.10.0-fix_gcc11.patch
View file @
986d5dfe
diff -uNr node-v24.10.0/src/node_v8_platform-inl.h node-v24.10.0-fix_gcc11/src/node_v8_platform-inl.h
--- node-v24.10.0/src/node_v8_platform-inl.h 2025-10-09 06:26:42.000000000 +1030
+++ node-v24.10.0-fix_gcc11/src/node_v8_platform-inl.h 2025-10-20 10:49:41.115626556 +1030
@@ -111,7 +111,10 @@
+++ node-v24.10.0-fix_gcc11/src/node_v8_platform-inl.h 2025-10-20 11:35:02.969940476 +1030
@@ -110,8 +110,11 @@
constexpr auto convert_to_set =
[](auto& categories) -> std::set<std::string> {
std::set<std::string> out;
for (const auto& s : categories) {
-
for (const auto& s : categories) {
- out.emplace(std::string(s.data(), s.size()));
+ // `std::views::split` produces subranges that are not guaranteed contiguous,
+ // so `s.data()` is invalid on GCC 11+ and C++20.
+ // Use iterator-based construction instead.
+ out.emplace(std::string(std::ranges::begin(s), std::ranges::end(s)));
+ for (auto&& s : categories) {
+ std::string token;
+ for (char c : s)
+ token.push_back(c);
+ out.emplace(std::move(token));
}
return out;
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment