Open
Description
Overview
When compiling with --analyze
flag on Windows, .model
files are created for each defined function in code. These files are named <function>.model
, so when a function has a particular name (e.g. aux
), it can lead to creation of a file with illegal name (e.g. aux.model
) - this in turn may cause errors as such files cannot be created normally. Example problematic names are: aux
, prn
.
Suggested minimal test case
// problem.cpp
void aux() {}
Compilation:
$ clang problem.cpp --analyze
error: error reading 'aux.model': no such file or directory
1 error generated.
Clang version:
$ clang --version
clang version 20.1.1
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: C:\Program Files\LLVM\bin