This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/51083] gnu++0x: resolving overloaded functions belonging to different namespaces


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]