bash-3.2$ cat g++.old-deja/g++.mike/warn1.C // { dg-do assemble } // { dg-options "-Wall" }
typedef char * charptr; typedef __SIZE_TYPE__ size_t; char c[]={'A','B','C','D'}; int i=size_t(&c); int *pp=&i; void foo() { } int main() { charptr(*pp)++; // { dg-warning "" } return 0; } bash-3.2$ gcc -Wall -S -o /tmp/x.s g++.old-deja/g++.mike/warn1.C -m64 g++.old-deja/g++.mike/warn1.C: In function âint main()â: g++.old-deja/g++.mike/warn1.C:12: warning: value computed is not used bash-3.2$ gcc -Wall -S -o /tmp/x.s g++.old-deja/g++.mike/warn1.C -m32 g++.old-deja/g++.mike/warn1.C: In function âint main()â: g++.old-deja/g++.mike/warn1.C:12: error: lvalue required as increment operand bash-3.2$ On Linux/x86-64, I got FAIL: g++.old-deja/g++.mike/warn1.C (test for errors, line 12) FAIL: g++.old-deja/g++.mike/warn1.C (test for excess errors) -- Summary: [4.4 Regression] Revision 140405 caused g++.old- deja/g++.mike/warn1.C Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: testsuite AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: hjl dot tools at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37561