On Linux/ia32, revision 158513 gave FAIL: libgomp.c++/for-3.C -O0 (test for excess errors) FAIL: libgomp.c++/for-3.C -O1 (test for excess errors) FAIL: libgomp.c++/for-3.C -O2 (test for excess errors) FAIL: libgomp.c++/for-3.C -O3 -fomit-frame-pointer (test for excess errors) FAIL: libgomp.c++/for-3.C -O3 -fomit-frame-pointer -funroll-all-loops -finline-functions (test for excess errors) FAIL: libgomp.c++/for-3.C -O3 -fomit-frame-pointer -funroll-loops (test for excess errors) FAIL: libgomp.c++/for-3.C -O3 -g (test for excess errors) FAIL: libgomp.c++/for-3.C -Os (test for excess errors) FAIL: libgomp.c++/for-4.C -O0 (test for excess errors) FAIL: libgomp.c++/for-4.C -O1 (test for excess errors) FAIL: libgomp.c++/for-4.C -O2 (test for excess errors) FAIL: libgomp.c++/for-4.C -O3 -fomit-frame-pointer (test for excess errors) FAIL: libgomp.c++/for-4.C -O3 -fomit-frame-pointer -funroll-all-loops -finline-functions (test for excess errors) FAIL: libgomp.c++/for-4.C -O3 -fomit-frame-pointer -funroll-loops (test for excess errors) FAIL: libgomp.c++/for-4.C -O3 -g (test for excess errors) FAIL: libgomp.c++/for-4.C -Os (test for excess errors) Revision 158505 is OK. It may be cause by revision 158508: http://gcc.gnu.org/ml/gcc-cvs/2010-04/msg00614.html
I am testing a patch ...
... patch posted to http://gcc.gnu.org/ml/gcc-patches/2010-04/msg01241.html
Subject: Bug 43800 Author: dodji Date: Tue Apr 20 19:23:45 2010 New Revision: 158571 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158571 Log: Fix PR c++/43800 gcc/cp/ChangeLog: PR c++/43800 PR c++/43704 * typeck.c (incompatible_dependent_types_p): If one of the compared types if not a typedef then honour their main variant equivalence. gcc/testsuite/ChangeLog: PR c++/43800 PR c++/43704 * g++.dg/template/typedef32.C: Adjust. * g++.dg/template/typedef33.C: New test. Added: trunk/gcc/testsuite/g++.dg/template/typedef33.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/typeck.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/g++.dg/template/typedef32.C
Fixed in trunk (4.6)