https://llvm.org/bugs/show_bug.cgi?id=22935
Marshall Clow (home) <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |INVALID --- Comment #2 from Marshall Clow (home) <[email protected]> --- Simpler reproducer: #include <string> #include <vector> template <typename T> struct fooboo { enum { value = false };}; template<> struct fooboo<std::vector<char>::iterator> { enum { value = true }; }; template<> struct fooboo<std::string ::iterator> { enum { value = true }; }; int main() { return 0; } It turns out that "std::vector<char>::iterator" and "std::string::iterator" are the same type, and thus you get a multiple definition error. This is unfortunate, but allowed by the standard. In fact, both could be simply "char *". (they aren't in libc++, but they could be) -- 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
