The attached test case results in a C++ compiler crash. It happens with both 17.00.50727.1 and 17.00.51025 x86; x64 compiles fine.The test case itself is heavily reduced from code involving member function pointers, with the union_cast used to retrieve the address of a member function. It seems I cannot remove anything else or the crash goes away.
Visual Studio/Team Foundation Server/.NET Framework Tooling Version
Steps to reproduce
Operating System Language