<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Assertion `CondExpr->getType()->isInteg ralOrEnumerationType() && "invalid condition type"' failed."
href="https://bugs.llvm.org/show_bug.cgi?id=44740">44740</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Assertion `CondExpr->getType()->isInteg ralOrEnumerationType() && "invalid condition type"' failed.
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>-New Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>changochen1@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
</td>
</tr></table>
<p>
<div>
<pre>POC:
---
#include < stdlib.h >
a() { switch (ding
---
Run script:
---
clang -x c -o poc poc.c
clang version 11.0.0 (<a href="https://github.com/llvm/llvm-project.git">https://github.com/llvm/llvm-project.git</a>
56b7f595d2b402ff177ca42214325c8fdea10fb0)
Target: x86_64-unknown-linux-gnu
Thread model: posix
---
Stack dump:
---
#0 0x000000000681faf6 llvm::sys::PrintStackTrace(llvm::raw_ostream&)
/home/rxz226/llvm-project/llvm/lib/Support/Unix/Signals.inc:560:7
#1 0x000000000681ac5e llvm::sys::RunSignalHandlers()
/home/rxz226/llvm-project/llvm/lib/Support/Signals.cpp:69:18
#2 0x000000000681dd30 llvm::sys::CleanupOnSignal(unsigned long)
/home/rxz226/llvm-project/llvm/lib/Support/Unix/Signals.inc:361:3
#3 0x000000000662a5aa (anonymous
namespace)::CrashRecoveryContextImpl::HandleCrash(int, unsigned long)
/home/rxz226/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:80:5
#4 0x000000000662a9e6
/home/rxz226/llvm-project/llvm/lib/Support/CrashRecoveryContext.cpp:361:51
#5 0x00007f71603b9390 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x11390)
#6 0x00007f715ef23428 raise
/build/glibc-LK5gWL/glibc-2.23/signal/../sysdeps/unix/sysv/linux/raise.c:54:0
#7 0x00007f715ef2502a abort /build/glibc-LK5gWL/glibc-2.23/stdlib/abort.c:91:0
#8 0x00007f715ef1bbd7 __assert_fail_base
/build/glibc-LK5gWL/glibc-2.23/assert/assert.c:92:0
#9 0x00007f715ef1bc82 (/lib/x86_64-linux-gnu/libc.so.6+0x2dc82)
#10 0x000000000cf19bbe
(/home/rxz226/llvm-project/bld_instru/bin/clang+0xcf19bbe)
#11 0x000000000bd93147 clang::ActionResult<clang::Stmt*, true>::isInvalid()
const /home/rxz226/llvm-project/clang/include/clang/Sema/Ownership.h:0:0
#12 0x000000000bd93147
clang::Parser::ParseSwitchStatement(clang::SourceLocation*)
/home/rxz226/llvm-project/clang/lib/Parse/ParseStmt.cpp:1492:0
#13 0x000000000bd8c43e
clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*,
32u>&, clang::Parser::ParsedStmtContext, clang::SourceLocation*,
clang::Parser::ParsedAttributesWithRange&) /home/r
xz226/llvm-project/clang/lib/Parse/ParseStmt.cpp:257:12
#14 0x000000000bd8aff1 clang::ParsedAttributesView::empty() const
/home/rxz226/llvm-project/clang/include/clang/Sema/ParsedAttr.h:0:0
#15 0x000000000bd8aff1
clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*,
32u>&, clang::Parser::ParsedStmtContext, clang::SourceLocation*)
/home/rxz226/llvm-project/clang/lib/Parse/ParseStmt.cpp:109:0
#16 0x000000000bd9f27e clang::Parser::ParseCompoundStatementBody(bool)
/home/rxz226/llvm-project/clang/lib/Parse/ParseStmt.cpp:1079:11
#17 0x000000000bda2138 clang::ActionResult<clang::Stmt*, true>::isInvalid()
const /home/rxz226/llvm-project/clang/include/clang/Sema/Ownership.h:0:0
#18 0x000000000bda2138 clang::Parser::ParseFunctionStatementBody(clang::Decl*,
clang::Parser::ParseScope&)
/home/rxz226/llvm-project/clang/lib/Parse/ParseStmt.cpp:2207:0
#19 0x000000000bbc17c5
clang::Parser::ParseFunctionDefinition(clang::ParsingDeclarator&,
clang::Parser::ParsedTemplateInfo const&, clang::Parser::LateParsedAttrList*)
/home/rxz226/llvm-project/clang/lib/Parse/Parser.cpp:1349:10
...
---</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>