https://llvm.org/bugs/show_bug.cgi?id=22935
Bug ID: 22935
Summary: Compilation failure when using libc++
Product: libc++
Version: 3.6
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Created attachment 14064
--> https://llvm.org/bugs/attachment.cgi?id=14064&action=edit
code that demonstrates the issue
The following bit of code compiles error/warning free when using gcc/clang and
libstdc++, however fails to compile when using libc++.
--- snip ---
#include <string>
#include <vector>
#include <deque>
template <typename T> struct fooboo { enum { value = false };};
#define foo(T) \
template<> struct fooboo<T> { enum { value = true }; };
#define do_foo(sequence) \
foo(sequence<char>::iterator) \
foo(sequence<char>::const_iterator) \
foo(sequence<unsigned char>::iterator) \
foo(sequence<unsigned char>::const_iterator)\
foo(char*)
foo(signed char*)
foo(unsigned char*)
foo(const char*)
foo(const signed char*)
foo(const unsigned char*)
foo(std::string::iterator)
foo(std::string::const_iterator)
do_foo(std::vector)
do_foo(std::deque)
int main()
{
return 0;
}
--- snip ---
--
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