http://llvm.org/bugs/show_bug.cgi?id=16077
Bug ID: 16077
Summary: std::vector<bool>::const_reference not bool
Product: libc++
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
#include <vector>
struct foo {
void const* ptr;
template<typename T> foo(T const& t) : ptr(&t) {}
foo(bool b);
foo(std::vector<bool>::reference const&);
//foo(std::vector<bool>::const_reference const&);
};
void test() {
std::vector<bool> const v(5, true);
foo f(v[1]);
}
std::vector<bool>::const_iterator is bool on all other
compilers/standard libraries I tried (gcc, msvc, intel),
and the code above compiles as is.
clang++/libc++ requires to uncomment the commented line,
breaking this code for all other compilers.
Similar problem in BugID 10314 marked as fixed, but
apparently not fixed for my case.
Linux amd64 debian experimental,
libc++ 1.0~svn181765-1,
clang++ 1:3.2repack-6.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs