------- Comment #12 from dfranke at gcc dot gnu dot org 2009-04-05 20:40 ------- Subject: Bug 25104
Author: dfranke Date: Sun Apr 5 20:40:13 2009 New Revision: 145573 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=145573 Log: gcc/fortran/: 2009-04-05 Daniel Franke <franke.dan...@gmail.com> PR fortran/25104 PR fortran/29962 * check.c (gfc_check_all_any): Check rank of DIM. (gfc_check_count): Likewise. * intrinsic.h (gfc_simplify_all): New prototype. (gfc_simplify_any): Likewise. (gfc_simplify_count): Likewise. (gfc_simplify_sum): Likewise. (gfc_simplify_product): Likewise. * intrinsic.c (add_functions): Added new simplifier callbacks. * simplify.c (transformational_result): New. (simplify_transformation_to_scalar): New. (simplify_transformation_to_array): New. (gfc_count): New. (gfc_simplify_all): New. (gfc_simplify_any): New. (gfc_simplify_count): New. (gfc_simplify_sum): New. (gfc_simplify_product): New. * expr.c (check_transformational): Allow additional transformational intrinsics in initialization expression. gcc/testsuite/: 2009-04-05 Daniel Franke <franke.dan...@gmail.com> PR fortran/25104 PR fortran/29962 * gfortran.dg/count_init_expr.f03 * gfortran.dg/product_init_expr.f03 * gfortran.dg/sum_init_expr.f03 Added: branches/fortran-dev/gcc/testsuite/gfortran.dg/count_init_expr.f03 branches/fortran-dev/gcc/testsuite/gfortran.dg/product_init_expr.f03 branches/fortran-dev/gcc/testsuite/gfortran.dg/sum_init_expr.f03 Modified: branches/fortran-dev/gcc/fortran/ChangeLog.dev branches/fortran-dev/gcc/fortran/check.c branches/fortran-dev/gcc/fortran/expr.c branches/fortran-dev/gcc/fortran/intrinsic.c branches/fortran-dev/gcc/fortran/intrinsic.h branches/fortran-dev/gcc/fortran/simplify.c branches/fortran-dev/gcc/testsuite/ChangeLog.fortran-dev -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25104