This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/51083] gnu++0x: resolving overloaded functions belonging to different namespaces
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 10 Nov 2011 19:00:18 +0000
- Subject: [Bug libstdc++/51083] gnu++0x: resolving overloaded functions belonging to different namespaces
- Auto-submitted: auto-generated
- References: <bug-51083-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51083
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Component|c++ |libstdc++
Ever Confirmed|0 |1
--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-11-10 19:00:18 UTC ---
N.B. the reason std::imag() is in the overload set is because cx_mat is
Mat<std::complex<double>> so namespace std is an associated namespace during
name lookup for "imag"
The problem isn't to do with overloads in different namespaces, I think it's
just that std::imag() in <complex> is too greedy and matches anything