[Bug c++/37804] friend declaration leaks into global scope at template instantiation
ilya.konstantinov at gmail dot com
gcc-bugzilla@gcc.gnu.org
Sun Jun 1 19:02:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37804
Ilya Konstantinov <ilya.konstantinov at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ilya.konstantinov at gmail dot com
--- Comment #6 from Ilya Konstantinov <ilya.konstantinov at gmail dot com> ---
This bug causes an error using llvm's libc++, e.g.:
#include <string>
void foo() {
string::iterator it; // friend-declares vector<_Tp,_Alloc>
}
#include <vector>
using std::vector; // <-- error: 'vector' is already declared in this scope
More information about the Gcc-bugs
mailing list