OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [init/] [array3.C] - Rev 774

Go to most recent revision | Compare with Previous | Blame | View Log

// PR c++/6331
// Bug: we were generating a badly cv-qualified ARRAY_TYPE in the
// synthesized copy constructor for A, which then became the canonical
// version, confusing later uses.

struct A {
  virtual ~A();
  const float* f();
  float fa[3];
};

struct B {
  B(const A& ai) : a (ai) {}
  A a;
};

void g (const float pos[3]);

extern A& a;
void h()
{
  g (a.f());
}

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.