Quuxplusone / LLVMBugzillaTest

0 stars 0 forks source link

clang++ crash when using -target x86-pc-windows-gnu #49037

Open Quuxplusone opened 3 years ago

Quuxplusone commented 3 years ago
Bugzilla Link PR50068
Status NEW
Importance P enhancement
Reported by Asensio Lorenzo Sempere (asensio.aerospace@gmail.com)
Reported on 2021-04-21 17:41:21 -0700
Last modified on 2021-04-21 17:41:21 -0700
Version 11.0
Hardware PC Windows NT
CC htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
Fixed by commit(s)
Attachments BasicCppTest.c (155 bytes, text/x-csrc)
Blocks
Blocked by
See also
Created attachment 24779
Source that caused the crash

I run
>clang -target x86-pc-windows-gnu BasicCppTest.c

clang crashed throwing this message:
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash
backtrace, preprocessed source, and associated run script.
Stack dump:
0.      Program arguments: clang -target x86-pc-windows-gnu BasicCppTest.c
1.      Compilation construction
2.      Building compilation jobs
3.      Building compilation jobs
#0 0x02296394 C:\Program Files (x86)\LLVM\bin\clang.exe 0x1d26394 C:\Program
Files (x86)\LLVM\bin\clang.exe 0x1cd6465
#1 0x02296394 C:\Program Files (x86)\LLVM\bin\clang.exe 0x1cd473b C:\Program
Files (x86)\LLVM\bin\clang.exe 0x1ccc837
0x02296394 (0x06B91560 0x06BA2120 0x0698E500 0x0698E6A4)
0x02246465 (0x0698E788 0x06B91560 0x06BA2120 0x06BCE1A0)
0x0224473B (0x0698E870 0x06B91560 0x06BA2120 0x06BCE1A0)
0x0223C837 (0x00000033 0x06BA2138 0x00000001 0x00000003)

I was running directly from command line.
I attached BasicCppTest.c

The error also occurred when I replaced the comments to use C++ style print
(iostream and cout<<).

My machine:
Windows 10, Intel i7, 16 GB RAM

Clang version (clang --version):
clang version 12.0.0
Target: i686-pc-windows-msvc
Thread model: posix
InstalledDir: C:\Program Files (x86)\LLVM\bin

GCC version (gcc --version):
gcc (i686-posix-dwarf-rev0, Built by MinGW-W64 project) 8.1.0
Copyright (C) 2018 Free Software Foundation, Inc.
Quuxplusone commented 3 years ago

Attached BasicCppTest.c (155 bytes, text/x-csrc): Source that caused the crash