You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How often does it reproduce? Is there a required condition?
No response
What is the expected behavior?
No response
What do you see instead?
V8's CppHeapCreateParams requires aggregate initialization. It used to define deleted copy constructor and copy assignment members but that breaks aggregate initialization in C++20. V8 fixed this in 9.9: v8/v8@a66b09e
The fix Node applied was to revert the v8 commit. This reversion is still being applied today: 9f84d3e
I am unsure what was the trigger of that compilation error, I can't reproduce it if I copy-paste the relevant parts into godbolt and compile with the version of MSVC used in the linked issue: https://godbolt.org/z/os314xK3s
I suggest reverting this commit, and fixing the root cause if it still exists.
Additional information
No response
The text was updated successfully, but these errors were encountered:
Note that we make use of cppgc in a node add-on. To be able to do that, as Node.js doesn't initialize the CppHeap, we are initializing it ourselves. That's likely why the code in #45427 works, because Node doesn't actually try to create the CppHeap. Note also that in order to use cppgc, we have had to modify the Node build to include all the extra headers required.
Version
No response
Platform
No response
Subsystem
No response
What steps will reproduce the bug?
Try compiling with C++20 enabled.
How often does it reproduce? Is there a required condition?
No response
What is the expected behavior?
No response
What do you see instead?
V8's
CppHeapCreateParams
requires aggregate initialization. It used to define deleted copy constructor and copy assignment members but that breaks aggregate initialization in C++20. V8 fixed this in 9.9: v8/v8@a66b09eWhen Node updated past V8 9.9, it apparently saw a compiler error on Windows: https://bugs.chromium.org/p/v8/issues/detail?id=12661
The fix Node applied was to revert the v8 commit. This reversion is still being applied today: 9f84d3e
I am unsure what was the trigger of that compilation error, I can't reproduce it if I copy-paste the relevant parts into godbolt and compile with the version of MSVC used in the linked issue: https://godbolt.org/z/os314xK3s
I suggest reverting this commit, and fixing the root cause if it still exists.
Additional information
No response
The text was updated successfully, but these errors were encountered: