[llvm-bugs] [Bug 50068] New: clang++ crash when using -target x86-pc-windows-gnu
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Apr 21 17:41:21 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=50068
Bug ID: 50068
Summary: clang++ crash when using -target x86-pc-windows-gnu
Product: clang
Version: 11.0
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: asensio.aerospace at gmail.com
CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
neeilans at live.com, richard-llvm at metafoo.co.uk
Created attachment 24779
--> https://bugs.llvm.org/attachment.cgi?id=24779&action=edit
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.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210422/822dda7c/attachment.html>
More information about the llvm-bugs
mailing list