2006-01-18 Paul Thomas <pault@gcc.gnu.org>
PR fortran/20869 PR fortran/20875 PR fortran/25024 * symbol.c (check_conflict): Add pointer valued elemental functions and internal procedures with the external attribute to the list of conflicts. (gfc_add_attribute): New catch-all function to perform the checking of symbol attributes for attribute declaration statements. * decl.c (attr_decl1): Call gfc_add_attribute for each of - (gfc_match_external, gfc_match_intent, gfc_match_intrinsic, gfc_match_pointer, gfc_match_dimension, gfc_match_target): Remove spurious calls to checks in symbol.c. Set the attribute directly and use the call to attr_decl() for checking. * gfortran.h: Add prototype for gfc_add_attribute. PR fortran/25785 * resolve.c (resolve_function): Exclude PRESENT from assumed size argument checking. Replace strcmp's with comparisons with generic codes. 2006-01-18 Paul Thomas <pault@gcc.gnu.org> Steven G. Kargl <kargls@comcast.net> PR fortran/20869 * gfortran.dg/intrinsic_external_1.f90: New test. PR fortran/20875. * gfortran.dg/elemental_pointer_1.f90: New test. PR fortran/25024 * gfortran.dg/external_procedures_1.f90: New test. PR fortran/25785 gfortran.dg/assumed_present.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@109899 138bc75d-0d04-0410-961f-82ee72b054a4
Showing
- gcc/fortran/ChangeLog 24 additions, 0 deletionsgcc/fortran/ChangeLog
- gcc/fortran/decl.c 14 additions, 8 deletionsgcc/fortran/decl.c
- gcc/fortran/gfortran.h 1 addition, 0 deletionsgcc/fortran/gfortran.h
- gcc/fortran/resolve.c 5 additions, 4 deletionsgcc/fortran/resolve.c
- gcc/fortran/symbol.c 19 additions, 0 deletionsgcc/fortran/symbol.c
- gcc/testsuite/ChangeLog 15 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/gfortran.dg/assumed_present.f90 9 additions, 0 deletionsgcc/testsuite/gfortran.dg/assumed_present.f90
- gcc/testsuite/gfortran.dg/elemental_pointer_1.f90 11 additions, 0 deletionsgcc/testsuite/gfortran.dg/elemental_pointer_1.f90
- gcc/testsuite/gfortran.dg/external_procedures_1.f90 41 additions, 0 deletionsgcc/testsuite/gfortran.dg/external_procedures_1.f90
- gcc/testsuite/gfortran.dg/intrinsic_external_1.f90 8 additions, 0 deletionsgcc/testsuite/gfortran.dg/intrinsic_external_1.f90
Loading
Please register or sign in to comment