https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116966
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Comment from the testcase: /* Now test some warnings. */ object.p1; /* This warning does not seem to be produced in C++. dg-warning "value computed is not used" */