[llvm-bugs] [Bug 26011] New: assertion "Result.isUninit() && "temporary created multiple times"" fails
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Jan 4 06:10:58 PST 2016
https://llvm.org/bugs/show_bug.cgi?id=26011
Bug ID: 26011
Summary: assertion "Result.isUninit() && "temporary created
multiple times"" fails
Product: clang
Version: 3.7
Hardware: PC
OS: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: C++14
Assignee: unassignedclangbugs at nondot.org
Reporter: curdeius at gmail.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
Similar behaviour to bug #17800.
Happens on FreeBSD with -std=c++14 (but not with -std=c++11).
The very simple program declares a boost::lockfree::queue.
I have tested with clang 3.7.0 and clang-devel (which unfortunately dates back
to 20th July 2015) with the same result.
> clang++ -std=c++11 -stdlib=libc++ -lc++ -I./thirdparty/boost ./test.cpp
> clang++ -std=c++14 -stdlib=libc++ -lc++ -I./thirdparty/boost ./test.cpp
Assertion failed: (Result.isUninit() && "temporary created multiple times"),
function createTemporary, file
/wrkdirs/usr/ports/devel/llvm37/work/llvm-3.7.0.src/tools/clang/lib/AST/ExprConstant.cpp,
line 839.
clang-3.7: error: unable to execute command: Abort trap (core dumped)
clang-3.7: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.7.0 (tags/RELEASE_370/final)
Target: x86_64-unknown-freebsd10.1
Thread model: posix
Repro (using Boost 1.60):
```
#include <boost/lockfree/queue.hpp>
struct message {};
static boost::lockfree::queue<message, boost::lockfree::capacity<10>>
a_message_queue;
int main() {}
```
--
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/20160104/227fb237/attachment.html>
More information about the llvm-bugs
mailing list