[llvm-bugs] [Bug 37957] New: Assertion failure in clang::Expr::ClassifyImpl(clang::ASTContext &, clang::SourceLocation *) const: getValueKind() == VK_XValue
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Jun 27 07:09:00 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=37957
Bug ID: 37957
Summary: Assertion failure in
clang::Expr::ClassifyImpl(clang::ASTContext &,
clang::SourceLocation *) const: getValueKind() ==
VK_XValue
Product: clang
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: alexfh at google.com
CC: llvm-bugs at lists.llvm.org
$ 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()
--
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/20180627/bbc77a82/attachment-0001.html>
More information about the llvm-bugs
mailing list