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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org
           Keywords|                            |ice-on-invalid-code

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
This test is ICE on invalid, ^^m is a reflection of the m variable (with const
int type), so obviously it can't be used for member access, so should be
rejected.

struct A { int a; } b;

int
main ()
{
  b.[: ^^b :] = 5;
}

ICEs the same way.
b.[: ^^:: :] = 5; is correctly rejected, so is b.[: ^^int :] = 5;

Reply via email to