Visual Studio Community 2017.4 reproducibly crashes during editing when VA's code inspection is enabled on this lambda:
auto map_to_array = [](const auto& srcMap) {
auto size = static_cast<int>(srcMap.size());
auto array = new std::remove_reference_t<decltype(srcMap)>::mapped_type[size];
int i = 0;
for(const auto& [_, elem] : srcMap)
array[i++] = elem;
return std::make_pair(size, array);
};
Here's a callstack:
> valibclang.dll!26cedaa4() Unknown No symbols loaded.
[Frames below may be incorrect and/or missing, no symbols loaded for valibclang.dll] Annotated Frame
valibclang.dll!26ced771() Unknown No symbols loaded.
valibclang.dll!26ce9abe() Unknown No symbols loaded.
valibclang.dll!27281597() Unknown No symbols loaded.
valibclang.dll!27282230() Unknown No symbols loaded.
valibclang.dll!26f760f1() Unknown No symbols loaded.
valibclang.dll!269c5cb5() Unknown No symbols loaded.
valibclang.dll!269d1cae() Unknown No symbols loaded.
valibclang.dll!26becf21() Unknown No symbols loaded.
valibclang.dll!26be4946() Unknown No symbols loaded.
valibclang.dll!26be5c16() Unknown No symbols loaded.
valibclang.dll!26cceaed() Unknown No symbols loaded.
valibclang.dll!26cc7f12() Unknown No symbols loaded.
valibclang.dll!269c72f7() Unknown No symbols loaded.
valibclang.dll!26c4f816() Unknown No symbols loaded.
valibclang.dll!26c24664() Unknown No symbols loaded.
valibclang.dll!26c8de1a() Unknown No symbols loaded.
valibclang.dll!2725412b() Unknown No symbols loaded.
valibclang.dll!272542ab() Unknown No symbols loaded.
valibclang.dll!2728a9df() Unknown No symbols loaded.
valibclang.dll!27289613() Unknown No symbols loaded.
valibclang.dll!27281f4b() Unknown No symbols loaded.
valibclang.dll!272617fa() Unknown No symbols loaded.
valibclang.dll!2725e281() Unknown No symbols loaded.
valibclang.dll!27268d28() Unknown No symbols loaded.
valibclang.dll!2725e8b6() Unknown No symbols loaded.
valibclang.dll!27293cec() Unknown No symbols loaded.
valibclang.dll!272935ba() Unknown No symbols loaded.
valibclang.dll!272900f2() Unknown No symbols loaded.
valibclang.dll!27291885() Unknown No symbols loaded.
valibclang.dll!27251aba() Unknown No symbols loaded.
valibclang.dll!2725e078() Unknown No symbols loaded.
valibclang.dll!26f760f1() Unknown No symbols loaded.
valibclang.dll!2726e77b() Unknown No symbols loaded.
valibclang.dll!27250ee8() Unknown No symbols loaded.
valibclang.dll!27252d96() Unknown No symbols loaded.
valibclang.dll!2724e804() Unknown No symbols loaded.
valibclang.dll!26ba1ff1() Unknown No symbols loaded.
valibclang.dll!26ba1f2f() Unknown No symbols loaded.
valibclang.dll!26b73ee5() Unknown No symbols loaded.
valibclang.dll!26b73244() Unknown No symbols loaded.
valibclang.dll!26b72f54() Unknown No symbols loaded.
valibclang.dll!269d0d6d() Unknown No symbols loaded.
valibclang.dll!269c5a94() Unknown No symbols loaded.
valibclang.dll!26f693ea() Unknown No symbols loaded.
valibclang.dll!26f69464() Unknown No symbols loaded.
valibclang.dll!26f694fd() Unknown No symbols loaded.
valibclang.dll!274c5af1() Unknown No symbols loaded.
valibclang.dll!274c5a9a() Unknown No symbols loaded.
valibclang.dll!274c5a9a() Unknown No symbols loaded.
[External Code] Annotated Frame
valibclang.dll!274c5a9a() Unknown No symbols loaded.
As a workaound I currently have to disable code inspection.
I'd appreciate a fix.
Here's the VA system info:
VA_X.dll file version 10.9.2238.0 built 2017.10.24
DevEnv.exe version 15.0.27004.2009 Community
msenv.dll version 15.0.27004.2008
Comctl32.dll version 6.10.16299.19
Windows 10 10.0 Build 16299
8 processors (x86-64, WOW64)
Language info: 1252, 0x407