public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/11692] New: vector<A::X<T> > operator== does not find operator== of A::X
@ 2003-07-28  9:20 klaus dot kretschel at dlr dot de
  2003-07-28 19:39 ` [Bug libstdc++/11692] " pinskia at physics dot uc dot edu
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: klaus dot kretschel at dlr dot de @ 2003-07-28  9:20 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11692

           Summary: vector<A::X<T> > operator== does not find operator== of
                    A::X
           Product: gcc
           Version: 3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: klaus dot kretschel at dlr dot de
                CC: gcc-bugs at gcc dot gnu dot org

The test program:

#include <vector>
namespace X { template< class T > class A; }

template <class T> class X::A
{
  template <typename S>
  friend bool operator==(const A<S>& _f1, const A<S>& _f2);
  T dummy;
};

template <typename S>
bool operator==(const X::A<S>& _f1, const X::A<S>& _f2) { return false; }

bool test()
{
  std::vector <X::A <float> > v1, v2;
  return v1 == v2;
}

yields the error message

/usr/include/g++/bits/stl_algobase.h:681: no match for `const X::A<float>& == 
   const X::A<float>&' operator

The program compiles if I remove the namespace or replace the vector with
a base datatype. It also compiles with g++ 2.95.

OS: i486-suse-linux


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug libstdc++/11692] vector<A::X<T> > operator== does not find operator== of A::X
  2003-07-28  9:20 [Bug libstdc++/11692] New: vector<A::X<T> > operator== does not find operator== of A::X klaus dot kretschel at dlr dot de
@ 2003-07-28 19:39 ` pinskia at physics dot uc dot edu
  2003-07-28 19:41 ` pinskia at physics dot uc dot edu
  2003-07-28 19:42 ` pinskia at physics dot uc dot edu
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-28 19:39 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11692


pinskia at physics dot uc dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


------- Additional Comments From pinskia at physics dot uc dot edu  2003-07-28 19:38 -------
This is not a bug see PR 8279 for information on why. <htttp://gcc.gnu.org/PR8279>.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug libstdc++/11692] vector<A::X<T> > operator== does not find operator== of A::X
  2003-07-28  9:20 [Bug libstdc++/11692] New: vector<A::X<T> > operator== does not find operator== of A::X klaus dot kretschel at dlr dot de
  2003-07-28 19:39 ` [Bug libstdc++/11692] " pinskia at physics dot uc dot edu
@ 2003-07-28 19:41 ` pinskia at physics dot uc dot edu
  2003-07-28 19:42 ` pinskia at physics dot uc dot edu
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-28 19:41 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11692


pinskia at physics dot uc dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |


------- Additional Comments From pinskia at physics dot uc dot edu  2003-07-28 19:41 -------
Reopening bug to mark as a dup of ...


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug libstdc++/11692] vector<A::X<T> > operator== does not find operator== of A::X
  2003-07-28  9:20 [Bug libstdc++/11692] New: vector<A::X<T> > operator== does not find operator== of A::X klaus dot kretschel at dlr dot de
  2003-07-28 19:39 ` [Bug libstdc++/11692] " pinskia at physics dot uc dot edu
  2003-07-28 19:41 ` pinskia at physics dot uc dot edu
@ 2003-07-28 19:42 ` pinskia at physics dot uc dot edu
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-07-28 19:42 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11692


pinskia at physics dot uc dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


------- Additional Comments From pinskia at physics dot uc dot edu  2003-07-28 19:42 -------
bug 8277 which is the same non-bug.

*** This bug has been marked as a duplicate of 8277 ***


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-07-28 19:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-28  9:20 [Bug libstdc++/11692] New: vector<A::X<T> > operator== does not find operator== of A::X klaus dot kretschel at dlr dot de
2003-07-28 19:39 ` [Bug libstdc++/11692] " pinskia at physics dot uc dot edu
2003-07-28 19:41 ` pinskia at physics dot uc dot edu
2003-07-28 19:42 ` pinskia at physics dot uc dot edu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).