<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 - Segfault in StmtPrinter::VisitIntegerLiteral for __int128 values"
href="https://bugs.llvm.org/show_bug.cgi?id=40908">40908</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Segfault in StmtPrinter::VisitIntegerLiteral for __int128 values
</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>arthur.j.odwyer@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>// <a href="https://godbolt.org/z/qFl8Dd">https://godbolt.org/z/qFl8Dd</a>
template<__int128 C>
void f() {
static_assert(C == 42);
}
void g() {
f<1>();
}
Partial stack trace:
#3 0x00007f2b12b96890 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x12890)
#4 0x000055fbc7832253 llvm::raw_ostream::write(unsigned char)
(/opt/compiler-explorer/clang-trunk-20190228/bin/clang-9+0x252b253)
#5 0x000055fbc960b3ba (anonymous
namespace)::StmtPrinter::VisitIntegerLiteral(clang::IntegerLiteral*)
(/opt/compiler-explorer/clang-trunk-20190228/bin/clang-9+0x43043ba)
#6 0x000055fbc960c68d (anonymous namespace)::StmtPrinter::Visit(clang::Stmt*)
(/opt/compiler-explorer/clang-trunk-20190228/bin/clang-9+0x430568d)
#7 0x000055fbc960cdaa (anonymous namespace)::StmtPrinter::Visit(clang::Stmt*)
(/opt/compiler-explorer/clang-trunk-20190228/bin/clang-9+0x4305daa)
#8 0x000055fbc9612708 (anonymous
namespace)::StmtPrinter::VisitBinaryOperator(clang::BinaryOperator*)
(/opt/compiler-explorer/clang-trunk-20190228/bin/clang-9+0x430b708)
#9 0x000055fbc960bce3 (anonymous namespace)::StmtPrinter::Visit(clang::Stmt*)
(/opt/compiler-explorer/clang-trunk-20190228/bin/clang-9+0x4304ce3)
#10 0x000055fbc960df82 clang::Stmt::printPretty(llvm::raw_ostream&,
clang::PrinterHelper*, clang::PrintingPolicy const&, unsigned int,
llvm::StringRef, clang::ASTContext const*) const
(/opt/compiler-explorer/clang-trunk-20190228/bin/clang-9+0x4306f82)
#11 0x000055fbc91b32f7
clang::Sema::findFailedBooleanCondition[abi:cxx11](clang::Expr*)
(/opt/compiler-explorer/clang-trunk-20190228/bin/clang-9+0x3eac2f7)
#12 0x000055fbc8ed05c2
clang::Sema::BuildStaticAssertDeclaration(clang::SourceLocation, clang::Expr*,
clang::StringLiteral*, clang::SourceLocation, bool)</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>