-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Labels:None
-
Fully Compatible
-
ALL
-
-
Dev Platform 2022-07-11, Dev Platform 2022-07-25
Updating to the latest version of the compiler for MSVC 2022 cause a compilation error:
[1667/4591] Compiled build\debug\mongo\db\query\optimizer\explain.obj
FAILED: build/debug/mongo/db/query/optimizer/explain.obj cl @build\debug\mongo\db\query\optimizer\explain.obj.rsp src\mongo\db\query\optimizer\explain.cpp(1691,32): error C2039: '_type': is not a member of 'mongo::optimizer::properties::DistributionAndProjections' if (distr1._type < distr2._type) { ^ C:\mongodb\mongo\src\mongo/db/query/optimizer/props.h(233): note: see declaration of 'mongo::optimizer::properties::DistributionAndProjections' struct DistributionAndProjections { src\mongo\db\query\optimizer\explain.cpp(2257): note: see reference to class template instantiation 'mongo::optimizer::ExplainGeneratorTransporter<version>' being compiled } ;
around the code https://github.com/mongodb/mongo/blob/afc52bea57c8edb8769efa67c01ebbde5a87f50d/src/mongo/db/query/optimizer/explain.cpp#L1688-L1693
Investigate the relevant code related to the newer compiler.