Issue 92179
Summary Clang++16.0.5 error while compiling cppfront
Labels clang
Assignees
Reporter yawnnn
    Hello,
just installed clang 16.0.5 on windows 10 with Visual Studio installer, i tried to compile cppfront (as of [3604626](https://github.com/hsutter/cppfront/commit/36046264f49d8f58cf318643dfb235f0db696909)) as instructed by the author. 
Here are the preprocessed source and run script:
[clang-bug-report.zip](https://github.com/llvm/llvm-project/files/15313773/clang-bug-report.zip)

Here's the error:
```
Stack dump:
0.	Program arguments: "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\Llvm\\bin\\clang++.exe" -cc1 -triple i686-pc-windows-msvc19.37.32822 -emit-obj -mrelax-all -mincremental-linker-compatible -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name cppfront.cpp -mrelocation-model static -mframe-pointer=all -fmath-errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -target-cpu pentium4 -tune-cpu generic -mllvm -treat-scalable-fixed-error-as-warning -fcoverage-compilation-dir=E:\\Users\\yawn\\code\\cppfront\\source -resource-dir "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\Llvm\\lib\\clang\\16" -internal-isystem "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\Llvm\\lib\\clang\\16\\include" -internal-isystem "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.37.32822\\include" -internal-isystem "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Auxiliary\\VS\\include" -internal-isystem "E:\\Windows Kits\\10\\include\\10.0.22621.0\\ucrt" -internal-isystem "E:\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\um" -internal-isystem "E:\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\shared" -internal-isystem "E:\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\winrt" -internal-isystem "E:\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\cppwinrt" -internal-isystem "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.37.32822\\include" -internal-isystem "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Auxiliary\\VS\\include" -internal-isystem "E:\\Windows Kits\\10\\include\\10.0.22621.0\\ucrt" -internal-isystem "E:\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\um" -internal-isystem "E:\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\shared" -internal-isystem "E:\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\winrt" -internal-isystem "E:\\Windows Kits\\10\\\\include\\10.0.22621.0\\\\cppwinrt" -std=c++20 -fdeprecated-macro -fdebug-compilation-dir=E:\\Users\\yawn\\code\\cppfront\\source -ferror-limit 19 -fno-use-cxa-atexit -fms-extensions -fms-compatibility -fms-compatibility-version=19.37.32822 -fdelayed-template-parsing -fno-implicit-modules -fcxx-exceptions -fexceptions -faddrsig -o E:\\Users\\yawn\\AppData\\Local\\Temp\\cppfront-e08320.o -x c++ cppfront.cpp
1.	reflect.h2:240:140: current parser token ')'
2.	reflect.h2:20:1: parsing namespace 'cpp2'
3.	reflect.h2:22:1: parsing namespace 'cpp2::meta'
4.	reflect.h2:240:78: parsing function body 'cpp2::meta::declaration_base::position'
5.	reflect.h2:240:78: in compound statement ('{}')
Exception Code: 0xC0000005
 #0 0x0308e9fa C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\bin\clang++.exe 0x273e9fa C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\bin\clang++.exe 0x2a02d8c
 #1 0x0308e9fa C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\bin\clang++.exe 0x2aa8b1a C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\bin\clang++.exe 0x28ba860
 #2 0x0308e9fa C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\bin\clang++.exe 0x2a760e5 C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\bin\clang++.exe 0x2a7c6be
 #3 0x0308e9fa C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\bin\clang++.exe 0x146c413 C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\bin\clang++.exe 0x25679dd
 #4 0x0308e9fa C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\bin\clang++.exe 0x1108edd C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\bin\clang++.exe 0x1108f28
 #5 0x0308e9fa C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\bin\clang++.exe 0x346fd24 C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\bin\clang++.exe 0x1455912
0x0308E9FA, C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\bin\clang++.exe(0x0000000000950000) + 0x273E9FA byte(s)
0x03352D8C, C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\bin\clang++.exe(0x0000000000950000) + 0x2A02D8C byte(s)
0x033F8B1A, C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\bin\clang++.exe(0x0000000000950000) + 0x2AA8B1A byte(s)
0x0320A860, C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\bin\clang++.exe(0x0000000000950000) + 0x28BA860 byte(s)
0x033C60E5, C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\bin\clang++.exe(0x0000000000950000) + 0x2A760E5 byte(s)
0x033CC6BE, C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\bin\clang++.exe(0x0000000000950000) + 0x2A7C6BE byte(s)
0x01DBC413, C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\bin\clang++.exe(0x0000000000950000) + 0x146C413 byte(s)
0x02EB79DD, C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\bin\clang++.exe(0x0000000000950000) + 0x25679DD byte(s)
0x01A58EDD, C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\bin\clang++.exe(0x0000000000950000) + 0x1108EDD byte(s)
0x01A58F28, C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\bin\clang++.exe(0x0000000000950000) + 0x1108F28 byte(s)
0x03DBFD24, C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\bin\clang++.exe(0x0000000000950000) + 0x346FD24 byte(s)
0x01DA5912, C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\bin\clang++.exe(0x0000000000950000) + 0x1455912 byte(s)
clang++: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 16.0.5
Target: i686-pc-windows-msvc
Thread model: posix
InstalledDir: C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\Llvm\bin
clang++: note: diagnostic msg: 
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to