July 22, 2002
More template bugs fixed (thanks Christof & Nic!). Keep 'em coming.

www.digitalmars.com/dmc/dmcppDownload.html




July 22, 2002
Here we go (only one template related bug report this time):

template<class T>
struct A
{
  char c[sizeof (T)];
  // Error: integer constant expression expected
};

template<class T>
struct B
{};


int main()
{
  A<B<char> > a;

  return 0;
}

// ----------------------------------------

struct A
{
  static void f()
  { }
};


int main(int argc, char *argv[])
{
  A a;

  (a.f)();
  // Error: '(' expected
  // Internal error: cpp 2762

  (A::f)();
  // Internal error: cpp 2762


  return 0;
}

// ----------------------------------------

struct A
{
  A(int a)
  { }
};

struct B
  : public A
{
  B();
};

B::B()
  : ::A(3)
// Error: bad member-initializer for '?0'
{
}


bye, Christof

-- 
http://cmeerw.org                                 JID: cmeerw@jabber.at mailto cmeerw at web.de

...and what have you contributed to the Net?