Issue 117541
Summary Clang crashes when compiling c++ modules, error: malformed or corrupted AST file: 'ran out of source locations'
Labels clang
Assignees
Reporter vrecluse
    ```
error: src\zproto.modules\zmod.zproto.cppm:201:8: fatal error: malformed or corrupted AST file: 'ran out of source locations'
  201 | export import :EEntityType;
      |        ^
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments: F:\\llvm19\\bin\\clang.exe @C:\\Users\\liaoxinwei\\AppData\\Local\\Temp\\response-ef5ca3.txt
1. <eof> parser at end of file
Exception Code: 0xC0000005
 #0 0x00007ff61aad62e2 (F:\llvm19\bin\clang.exe+0x24162e2)
 #1 0x00007ff61aab366e (F:\llvm19\bin\clang.exe+0x23f366e)
 #2 0x00007ff61aab3305 (F:\llvm19\bin\clang.exe+0x23f3305)
 #3 0x00007ff619846836 (F:\llvm19\bin\clang.exe+0x1186836)
 #4 0x00007ff61aab1d52 (F:\llvm19\bin\clang.exe+0x23f1d52)
 #5 0x00007ff6193947f6 (F:\llvm19\bin\clang.exe+0xcd47f6)
 #6 0x00007ff619846770 (F:\llvm19\bin\clang.exe+0x1186770)
 #7 0x00007ff61aab1d52 (F:\llvm19\bin\clang.exe+0x23f1d52)
 #8 0x00007ff61a055f3f (F:\llvm19\bin\clang.exe+0x1995f3f)

```

my file:
```
[zmod.zproto.cppm.zip](https://github.com/user-attachments/files/17902150/zmod.zproto.cppm.zip)

```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to