[llvm-bugs] [Bug 33140] New: Assertion failed: Result.isUninit() && "temporary created multiple times", file ExprConstant.cpp, line 1107
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue May 23 06:51:27 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=33140
Bug ID: 33140
Summary: Assertion failed: Result.isUninit() && "temporary
created multiple times", file ExprConstant.cpp, line
1107
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: russell_gallop at sn.scee.net
CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
These are two cases found in internal testing. They hit the same assertion but
were introduced at different times, presumably by related commits.
$ cat testa.cpp
// ========================
struct S {
constexpr S(const int &a = 0) {}
};
void foo(void) {
S s[2] = {};
}
// =======================
$ clang -c testa.cpp -std=c++11
Assertion failed: Result.isUninit() && "temporary created multiple times", file
<...>\ExprConstant.cpp, line 1107
Bisects to:
commit f83586caa9df7ebae5226227614513df4af4b402
Author: Nick Lewycky <nicholas at mxc.ca>
Date: Sat Apr 29 09:33:46 2017 +0000
Remove Sema::CheckForIntOverflow, and instead check all full-expressions.
CheckForIntOverflow used to implement a whitelist of top-level expressions
to
send to the constant expression evaluator, which handled many more
expressions
than the CheckForIntOverflow whitelist did.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@301742
91177308-0d34-0410-b5e6-96231b3b80d8
$ cat testb.cpp
// ==============================================================
bool bar(float const &f = 0);
bool foo() { return bar() && bar(); }
// ==============================================================
$ clang -c testb.cpp
Assertion failed: Result.isUninit() && "temporary created multiple times", file
<...>\ExprConstant.cpp, line 1107
Bisects to:
commit 750306071663247152ab611f63e1d97ec175786d
Author: Nick Lewycky <nicholas at mxc.ca>
Date: Wed May 17 23:56:54 2017 +0000
The constant expression evaluator should examine function arguments for
non-constexpr function calls unless the EvalInfo says to stop.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@303317
91177308-0d34-0410-b5e6-96231b3b80d8
--
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/20170523/b6e20f90/attachment.html>
More information about the llvm-bugs
mailing list