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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2020-10-25
     Ever confirmed|0                           |1

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Extended test:

// PR c++/97531

struct A { };
void A(int);

void
fn0 ()
{
  A a;
  static A *a2;
}

int B;
struct B { };

void
fn1 ()
{
  B b;
  static B *b2;
}

enum E { };
void E();

void
fn2 ()
{
  E e;
  static E *e2;
}

class C { };
void C(int);

void
fn3 ()
{
  C c;
  static C *c2;
}

union U { };
void U(int);

void
fn4 ()
{
  U u;
  static U *u2;
}

Reply via email to