<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 failure in clang::Expr::ClassifyImpl(clang::ASTContext &, clang::SourceLocation *) const: getValueKind() == VK_XValue"
href="https://bugs.llvm.org/show_bug.cgi?id=37957">37957</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Assertion failure in clang::Expr::ClassifyImpl(clang::ASTContext &, clang::SourceLocation *) const: getValueKind() == VK_XValue
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Frontend
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>alexfh@google.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>$ cat test-clang__Expr__ClassifyImpl.cc
typedef long a;
class b {
public:
operator a();
};
struct c;
class C {
public:
c operator[](int);
};
struct c {
b d[];
};
C e;
void f() {
b g;
0 > e[0].d[g];
}
$ clang-check test-clang__Expr__ClassifyImpl.cc -- -std=c++11
assertion failed at llvm/tools/clang/lib/AST/ExprClassification.cpp:58 in Cl
clang::Expr::ClassifyImpl(clang::ASTContext &, clang::SourceLocation *) const:
getValueKind() == VK_XValue
@ 0x556be2ad5026 __assert_fail
@ 0x556be18551bc clang::Expr::ClassifyImpl()
@ 0x556be0f09a0f clang::Sema::AddConversionCandidate()
@ 0x556be0efc3e4 IsUserDefinedConversion()
@ 0x556be0f25316 TryUserDefinedConversion()
@ 0x556be0ef5f9e TryImplicitConversion()
@ 0x556be0f05801 TryCopyInitialization()
@ 0x556be0f0b21f clang::Sema::AddBuiltinCandidate()
@ 0x556be0f0fbb3 (anonymous
namespace)::BuiltinOperatorOverloadBuilder::addGenericBinaryArithmeticOverloads()
@ 0x556be0f0ebb5 clang::Sema::AddBuiltinOperatorCandidates()
@ 0x556be0f1d5ee clang::Sema::CreateOverloadedBinOp()
@ 0x556be10d29bd BuildOverloadedBinOp()
@ 0x556be109b889 clang::Sema::ActOnBinOp()
@ 0x556be0cd85a4 clang::Parser::ParseRHSOfBinaryExpression()
@ 0x556be0cd75bc clang::Parser::ParseAssignmentExpression()
@ 0x556be0cd749e clang::Parser::ParseExpression()
@ 0x556be0c94de7 clang::Parser::ParseExprStatement()
@ 0x556be0c93dec
clang::Parser::ParseStatementOrDeclarationAfterAttributes()
@ 0x556be0c9397e clang::Parser::ParseStatementOrDeclaration()
@ 0x556be0c9adb5 clang::Parser::ParseCompoundStatementBody()
@ 0x556be0c9b69a clang::Parser::ParseFunctionStatementBody()
@ 0x556be0c7f4e0 clang::Parser::ParseFunctionDefinition()
@ 0x556be0d063bc clang::Parser::ParseDeclGroup()
@ 0x556be0c7e4bf clang::Parser::ParseDeclOrFunctionDefInternal()
@ 0x556be0c7dd7c clang::Parser::ParseDeclarationOrFunctionDefinition()
@ 0x556be0c7cabc clang::Parser::ParseExternalDeclaration()
@ 0x556be0c7bebb clang::Parser::ParseTopLevelDecl()
@ 0x556be0c77195 clang::ParseAST()
@ 0x556be0ac6883 clang::FrontendAction::Execute()</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>