Hello,
Multi-Dimensional Data Structure (mdds) is one of the libraries that is
used in LibreOffice. Recently, mdds build with Visual Studio 2026 faces
issues like this:
[CXX] C:/Users/user/core/workdir/UnpackedTarball/liborcus/src/
liborcus/gnumeric_context.cpp
[CXX] C:/Users/user/core/workdir/UnpackedTarball/liborcus/src/
liborcus/gnumeric_detection_handler.cpp
C:\Users\user\core\workdir\UnpackedTarball\mdds\include\mdds\flat_segment_tree_def.inl(761):
error C2382: 'mdds::flat_segment_tree<Key,Value>::operator ==':
redefinition; different exception specifications
C:\Users\user\core\workdir\UnpackedTarball\mdds\include\mdds/
flat_segment_tree.hpp(501): note: see declaration of
'mdds::flat_segment_tree<Key,Value>::operator =='
[CXX] C:/Users/user/core/workdir/UnpackedTarball/liborcus/src/
liborcus/gnumeric_filter_context.cpp
[CXX] C:/Users/user/core/workdir/UnpackedTarball/liborcus/src/
liborcus/gnumeric_handler.cpp
make[1]: *** [C:/Users/users/core/solenv/gbuild/ LinkTarget.mk:402:
C:/Users/users/core/workdir/GenCxxObject/UnpackedTarball/liborcus/src/liborcus/
gnumeric_cell_context.o] Error 2
make[1]: *** Waiting for unfinished jobs....
C:\Users\user\core\workdir\UnpackedTarball\mdds\include\mdds\flat_segment_tree_def.inl(761):
error C2382: 'mdds::flat_segment_tree<Key,Value>::operator ==':
redefinition; different exception specifications
C:\Users\user\core\workdir\UnpackedTarball\mdds\include\mdds/
flat_segment_tree.hpp(501): note: see declaration of
'mdds::flat_segment_tree<Key,Value>::operator =='
C:/Users/users/core/workdir/GenCxxObject/UnpackedTarball/liborcus/src/liborcus/
gnumeric_context.o] Error 2
Mihai, a LibreOfice contributor, submitted a workaround patch to mdds:
Fix MSVC C2382 error: redefinition of operator== with different
exception specifications
https://gitlab.com/mdds/mdds/-/merge_requests/130
But, the patch was not merged, as the problem is considered a bug from
MSVC itself:
MSBuildTools emits C2382 for template member with dependent noexcept
https://developercommunity.visualstudio.com/t/MSBuildTools-emits-C2382-for-template-me/11102837
Visual Studio team has announced that the issue is fixed in MSVC Build
Tools Version 14.52, in which uses at least 19.52.37025 as the compiler
version. But, this update is still not delivered. The current compiler
version is 19.51.36260 for Visual Studio 2026 version 18.11.3 (October
2026 feature update).
MSVC Build Tools Version 14.52 Release Candidate Now Available, October
15th, 2026
https://devblogs.microsoft.com/cppblog/msvc-build-tools-version-14-52-release-candidate-now-available/
At the moment, you may fix the build problem by modifying a single file.
Removing 2 words from the end of this line should make the build pass:
workdir\UnpackedTarball\mdds\include\mdds\flat_segment_tree_def.inl:761
Line 760 and 761 should look like this:
template<typename Key, typename Value>
bool flat_segment_tree<Key, Value>::operator==(const flat_segment_tree&
other) const
It should remain there until the next 'make clean', which I rarely do. I
usually do not invoke 'make clean' until I have to.
It is expected that the November feature update of MSVC 2026 with the
upcoming version 18.12, will fix this issue. I hope so.
Regards,
Hossein
--
Hossein Nourikhah, Ph.D., Developer Community Architect
Email: [email protected]
The Document Foundation, Winterfeldtstraße 52, 10781 Berlin, DE
Gemeinnützige rechtsfähige Stiftung des bürgerlichen Rechts
Legal details: https://www.documentfoundation.org/imprint