Visual Studio versions 16.4.x through 16.5.1 return an error when building drivers with Code Analysis (CA) enable in the WDK

  • Thread starter Thread starter Cymon Kilmer [MSFT]
  • Start date Start date
C

Cymon Kilmer [MSFT]

Guest
If CA is enabled and you try to build a driver with VS 16.4.x thru 16.5.1, the following error will be returned:

1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\km\ntddk.h(19206,1): fatal error C1001:

Internal compiler error.

1>(compiler file 'msc1.cpp', line 1532)

1> To work around this problem, try simplifying or changing the program near the locations listed above.

1>If possible please provide a repro here: https://developercommunity.visualstudio.com

This issue is resolved with VS16.5.2. It is good practice to build drivers with CA, in this instance to continue building drivers with CA it is advised to avoid using 16.4-16.5.1 for building drivers.

Continue reading...
 
Back
Top