[Bug c++/91415] Invalid warning for C++17 sequencing of shift operator E1<<E2.
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Aug 10 16:37:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91415
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Testcase also with PMF:
struct S { int a[10]; void bar (); void baz (); };
typedef void (S::*pmf) ();
void
foo (int i, int x[10][10], int y[10], struct S z[10], struct S *w[10], pmf
u[10])
{
int b = x[i++][i++];
int c = i++ << i++;
int d = i++ >> i++;
int e = i++ && i++;
int f = i++ ? i++ : i++;
int g = (i++, i++);
int h = z[i++].a[i++];
int j = w[i++]->a[i++];
(z[i++].*u[i++]) ();
(w[i++]->*u[i++]) ();
y[i++] = y[i++];
}
More information about the Gcc-bugs
mailing list