public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/29577]  New: overload/SFINAE problem
@ 2006-10-24  0:49 m_albert137 at yahoo dot com
  2006-10-24  0:56 ` [Bug c++/29577] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: m_albert137 at yahoo dot com @ 2006-10-24  0:49 UTC (permalink / raw)
  To: gcc-bugs

The following code reports that neither class X
nor Y contain nexted class T:

#include <iostream>
#include <vector>

struct X { typedef int T; };

class Y{ };

template<typename Z>
void foo(Z const& z,  typename Z::T* p)
{ std::cout << "has Z::T" << std::endl; }

template<typename Z>
void foo(Z const& z,  ...)
{ std::cout << "hasn't Z::T" << std::endl; }

int main(int argc, char *argv[])
{
   foo( X(), 0 );
   foo( Y(), 0 );
}

My understanding is that the ellipsis
should always have lower precedence.

Thank you.  You all do wonderful work!


-- 
           Summary: overload/SFINAE problem
           Product: gcc
           Version: 4.0.3
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: m_albert137 at yahoo dot com
  GCC host triplet: powerpc-ibm-aix4.3.3.0


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


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

end of thread, other threads:[~2009-12-08 11:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-24  0:49 [Bug c++/29577] New: overload/SFINAE problem m_albert137 at yahoo dot com
2006-10-24  0:56 ` [Bug c++/29577] " pinskia at gcc dot gnu dot org
2006-10-24  2:21 ` bangerth at dealii dot org
2006-10-24  2:30 ` pinskia at gcc dot gnu dot org
2006-11-01 22:57 ` bangerth at dealii dot org
2009-12-08 11:21 ` redi at gcc dot gnu dot org

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).