This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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: [GOLD] powerpc64 ODR violation check


On Fri, Mar 08, 2013 at 06:06:31PM -0800, Ian Lance Taylor wrote:
> That is peculiar.  Can you try this test program?  If this works, how
> is it different from the code you wrote?

It works.  Another level of hierarchy?  The following fails
/tmp/template.cc: In member function âint E<size>::z()â:
/tmp/template.cc:20:27: error: expected primary-expression before â)â token

class C
{
  template<int size>
  int fn();
};

template<int size>
class D : C
{
  int
  x()
  { return this->fn<size>(); }
};

template<int size>
class E : D<size>
{
  int
  z()
  { return this->fn<size>(); }
};


-- 
Alan Modra
Australia Development Lab, IBM


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