This is the mail archive of the gcc-patches@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]

Re: 252.eon


Michael Matz wrote:

> Just to make this crystal clear for myself: You mean something like the
> patch below?  I've regtested it on x86 (3.1 branch and head), and
> bootstrap is just running on both.  If there are no problems with that
> I'll commit the below diff to both branches.

Thanks Michael!

I was wondering if could be appropriate to add your reduced testcase to the
testsuite??

----------------
template <class T>
class Wrapper {
  public:
    Wrapper (T& a);
    Wrapper (const Wrapper<char>& ref);
};

template <class T>
class Element {
public:
  T * operator[](int x);
};

void test()
{
  char bla = 42;
  Element< Wrapper <unsigned char> > elem;
  elem[1][1] = Wrapper<char> (bla);
}
------------------

Ciao,
Paolo.



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