gfortran.fortran-torture/execute/emptyif.f90 -O1/-O2/-O3/-Os powerpc-ibm-aix5.2.0.0 error message: internal compiler error: tree check: expected class 'type', have 'exceptional' (error_mark) in operand_equal_p, at fold-const.c:2337 Introduced 20040922: http://gcc.gnu.org/ml/gcc-regression/2004-09/msg00178.html
I will look into this later.
Confirmed, the SSA_NAME's type is NULL I don't know why, there is another bug like this.
Here is a C example which shows that this is a regression: void abort1(void); int main() { int i; i = 1; if (i > 0) i = 2; if (i != 2) abort1(); if (i==0); else if (i == 2) i = 3; if (i != 3) abort1(); } : Search converges between 2004-09-22-014001-trunk (#554) and 2004-09-22-161001-trunk (#555).
Okay I think I know what is going on with this one and PR 17635, they are both related to the same bug.
Patch here: <http://gcc.gnu.org/ml/gcc-patches/2004-10/msg00072.html>.
My Fix is not right at all, DOM is the problem here.
Patch here: <http://gcc.gnu.org/ml/gcc-patches/2004-10/msg01546.html> which fixes it.
Steven asked me to take care about the patch.
http://gcc.gnu.org/ml/gcc-patches/2004-10/msg02358.html