[Bug c++/71638] [6/7/8 Regression] ICE on invalid C++ code on x86_64-linux-gnu with -Wall (internal compiler error: non-constant element in constant CONSTRUCTOR)

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Mar 20 15:28:00 GMT 2018


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|error-recovery,             |ice-on-valid-code
                   |ice-on-invalid-code         |
           Priority|P4                          |P2

--- Comment #9 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Another test case, which is valid; raising priority thus.

// PR c++/71638

struct A {
  struct {
    int i;
    int &j = i;
  } b;
  int a = b.j;
};

void bar (A);

void
foo ()
{
  bar (A{});
}


More information about the Gcc-bugs mailing list