Issue 136090
Summary [clang] Errors about .model files, when using --analyze on Windows
Labels clang
Assignees
Reporter icebox246
    # 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

```c++
// problem.cpp
void aux() {}
```

Compilation:
```console
$ 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
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to