[Bug c++/84881] internal compiler error: in assign_temp, at function.c:968 when building for gnueabihf

marxin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Mar 15 13:06:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84881

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |marxin at gcc dot gnu.org
         Resolution|---                         |DUPLICATE

--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
According to reduced test-case it's dup:

typedef struct {
  char a[6];
} b;
void *operator new(unsigned, void *c, int, char *) { return c; }
class d {
public:
  d(int);
};
class e {
public:
  enum {} f;
  e call(d, const e **, int, int);
  ~e();
};
b g() {
  int h, error;
  e *i;
  int *j;
  const e **args;
  b k;
  e *dest = (e *)&k;
  new (dest, sizeof(e), "") e(i->call(*j, args, h, error));
  return k;
}

*** This bug has been marked as a duplicate of bug 79085 ***


More information about the Gcc-bugs mailing list