public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/19311] New: ICE in resolve_overloaded_unification
@ 2005-01-07 13:13 jakub at gcc dot gnu dot org
  2005-01-07 13:46 ` [Bug c++/19311] [3.4/4.0 Regression] " pinskia at gcc dot gnu dot org
                   ` (19 more replies)
  0 siblings, 20 replies; 21+ messages in thread
From: jakub at gcc dot gnu dot org @ 2005-01-07 13:13 UTC (permalink / raw)
  To: gcc-bugs

template <class R, class T>
struct A
{
  explicit A (R (T::*xf) ()) : M (xf) {}
  R operator () (T *x) const { return (x->*M) (); }
private:
  R (T::*M) ();
};

template <class R, class T, class C>
struct B
{
  explicit B (R (T::*xf) (C)) : M (xf) {}
  R operator () (T *x, C y) const { return (x->*M) (y); }
private:
  R (T::*M) (C);
};

template <class R, class T>
inline A<R, T>
foo (R (T::*x) ()) { return A<R, T> (x); }

template <class R, class T, class C>
inline B<R, T, C>
foo (R (T::*x) (C)) { return B<R, T, C> (x); }

template< int X = 1 >
struct I
{
  unsigned int i;
  I () : i (0) {}
  void o (unsigned int x) { i = x; }
  unsigned int o () const { return i; }
};

template<typename T>
struct S
{
  unsigned int bar (void)
  {
    I<> j;
    return foo <unsigned int, I<> > (&I<>::o) (&j);
  }
};

ICEs in GCC 3.4.x and HEAD, compiles with GCC 3.2.3.

-- 
           Summary: ICE in resolve_overloaded_unification
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jakub at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


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

end of thread, other threads:[~2005-03-06 17:16 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-07 13:13 [Bug c++/19311] New: ICE in resolve_overloaded_unification jakub at gcc dot gnu dot org
2005-01-07 13:46 ` [Bug c++/19311] [3.4/4.0 Regression] " pinskia at gcc dot gnu dot org
2005-01-07 14:02 ` pinskia at gcc dot gnu dot org
2005-01-07 20:58 ` bangerth at dealii dot org
2005-01-08 22:52 ` pinskia at gcc dot gnu dot org
2005-01-10  0:50 ` pinskia at gcc dot gnu dot org
2005-01-10 14:11 ` lerdsuwa at gcc dot gnu dot org
2005-01-12 10:49 ` lerdsuwa at gcc dot gnu dot org
2005-01-13  6:07 ` lerdsuwa at gcc dot gnu dot org
2005-01-17 14:37 ` lerdsuwa at gcc dot gnu dot org
2005-01-17 15:32 ` giovannibajo at libero dot it
2005-01-17 16:19 ` lerdsuwa at gcc dot gnu dot org
2005-02-01 15:04 ` caolanm at redhat dot com
2005-03-01  0:09 ` [Bug c++/19311] [3.4/4.0/4.1 " pinskia at gcc dot gnu dot org
2005-03-02  0:08 ` giovannibajo at libero dot it
2005-03-04  2:17 ` mmitchel at gcc dot gnu dot org
2005-03-05 15:44 ` cvs-commit at gcc dot gnu dot org
2005-03-05 15:46 ` [Bug c++/19311] [3.4/4.0 " lerdsuwa at gcc dot gnu dot org
2005-03-06 16:59 ` cvs-commit at gcc dot gnu dot org
2005-03-06 17:12 ` cvs-commit at gcc dot gnu dot org
2005-03-06 17:16 ` lerdsuwa 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).