BullseyeCoverage Up Contents Search

Microsoft C++ Error C1001

Symptoms

The error below occurs with Visual Studio 2017.

source(line): fatal error C1001: An internal error has occurred in the compiler.
(compiler file 'f:\dd\vctools\compiler\cxxfe\sl\p1\c\constexpr.cpp', line line)

Cause

The error is caused by a bug in the Microsoft C++ compiler.

Resolution

Install the latest release of Visual Studio 2017.

More Information

The problem was introduced in compiler version 19.11 (Visual Studio 2017 15.0) and was fixed in 19.13.26209 (Visual Studio 2017 15.7).

Bug report: C1001 with assignment inside conditional operator

Updated: 7 Jun 2018