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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Adjusted testcase so that it doesn't need headers:
struct A
{
  A ();
  ~A ();
  A (const A &);
};

struct B
{
private:
  unsigned char y[1024 * 64];
public:
  short x;
  char z;
};

struct C : public B
{
  A s;
};

int
main ()
{
  C *ptr = new C ();
  C *ptr2 = new C (*ptr);
  delete ptr2;
  delete ptr;
}

Commenting out the private: line makes it go away.  Happens already in r105000
when I look at the frame sizes in the assembly (-Wframe-larger-than= wasn't
supported back then).

Reply via email to