<html>
<head>
<base href="https://llvm.org/bugs/" />
</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 --- - error: definition of '_Bind_simple<type-parameter-0-0 (type-parameter-0-1...)>' must be imported from module 'LLVM_Utils.ADT.SmallVector' before it is required"
href="https://llvm.org/bugs/show_bug.cgi?id=28972">28972</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>error: definition of '_Bind_simple<type-parameter-0-0 (type-parameter-0-1...)>' must be imported from module 'LLVM_Utils.ADT.SmallVector' before it is required
</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>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>Modules
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>vvasilev@cern.ch
</td>
</tr>
<tr>
<th>CC</th>
<td>dgregor@apple.com, llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>modules-selfhost$ cd
/home/vvassilev/workspace/llvm-git/modules-selfhost/lib/Support &&
/home/vvassilev/workspace/llvm-git/inst/bin/clang++ -DGTEST_HAS_RTTI=0
-D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
-D__STDC_LIMIT_MACROS
-I/home/vvassilev/workspace/llvm-git/modules-selfhost/lib/Support
-I/home/vvassilev/workspace/llvm-git/src/lib/Support
-I/home/vvassilev/workspace/llvm-git/modules-selfhost/include
-I/home/vvassilev/workspace/llvm-git/src/include -fPIC
-fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings
-Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long
-Wcovered-switch-default -Wnon-virtual-dtor -Wdelete-non-virtual-dtor
-Werror=date-time -std=c++11 -fmodules -fmodules-cache-path=module.cache
-ffunction-sections -fdata-sections -O3 -DNDEBUG -fno-exceptions -fno-rtti
-o CMakeFiles/LLVMSupport.dir/ManagedStatic.cpp.o -c
/home/vvassilev/workspace/llvm-git/src/lib/Support/ManagedStatic.cpp
In module 'LLVM_Utils' imported from
/home/vvassilev/workspace/llvm-git/src/lib/Support/ManagedStatic.cpp:14:
/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/mutex:734:12:
error: definition of '_Bind_simple<type-parameter-0-0
(type-parameter-0-1...)>' must be imported from module
'LLVM_Utils.ADT.SmallVector' before it is required
auto __bound_functor = std::__bind_simple(std::forward<_Callable>(__f),
^
/home/vvassilev/workspace/llvm-git/src/include/llvm/Support/Threading.h:93:10:
note: in instantiation of function template
specialization 'std::call_once<void (&)()>' requested here
std::call_once(flag, std::forward<Function>(F),
^
/home/vvassilev/workspace/llvm-git/src/lib/Support/ManagedStatic.cpp:35:9:
note: in instantiation of function template
specialization 'llvm::call_once<void (&)()>' requested here
llvm::call_once(mutex_init_flag, initializeMutex);
^
/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/functional:1663:12:
note: previous definition is here
struct _Bind_simple<_Callable(_Args...)>
^
1 error generated.</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>