Go to file
Paul Thomas e2d299684b re PR fortran/31154 (IMPORT fails for "<imported symbol> FUNCTION (...)" kind of procedures)
2007-10-02  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/31154
	PR fortran/31229
	PR fortran/33334
	* decl.c : Declare gfc_function_kind_locs and
	gfc_function_type_locus.
	(gfc_match_kind_spec): Add second argument kind_expr_only.
	Store locus before trying to match the expression. If the
	current state corresponds to a function declaration and there
	is no match to the expression, read to the parenthesis, return
	kind = -1, dump the expression and return.
	(gfc_match_type_spec): Renamed from match_type_spec and all
	references changed.  If an interface or an external function,
	store the locus, set kind = -1 and return.  Otherwise, if kind
	is already = -1, use gfc_find_symbol to try to find a use
	associated or imported type.
	match.h : Prototype for gfc_match_type_spec.
	* parse.c (match_deferred_characteristics): New function.
	(parse_spec): If in a function, statement is USE or IMPORT
	or DERIVED_DECL and the function kind=-1, call
	match_deferred_characteristics.  If kind=-1 at the end of the
	specification expressions, this is an error.
	* parse.h : Declare external gfc_function_kind_locs and
	gfc_function_type_locus.

2007-10-02  Paul Thomas  <pault@gcc.gnu.org>

	PR fortran/31154
	PR fortran/31229
	PR fortran/33334
	* gfortran.dg/function_kinds_1.f90: New test.
	* gfortran.dg/function_kinds_2.f90: New test.
	* gfortran.dg/derived_function_interface_1.f90: Correct illegal
	use association into interfaces.

From-SVN: r128948
2007-10-02 07:17:01 +00:00
boehm-gc
config
contrib compare-debug: Avoid spurious errors when .stripped files exist. 2007-10-01 20:27:22 +00:00
fixincludes
gcc re PR fortran/31154 (IMPORT fails for "<imported symbol> FUNCTION (...)" kind of procedures) 2007-10-02 07:17:01 +00:00
gnattools
include
INSTALL
intl
libada
libcpp
libdecnumber
libffi
libgcc
libgfortran
libgomp
libiberty
libjava check_jni_methods.sh: Don't depend on diff -b ignoring a single trailing whitespace. 2007-10-01 19:56:46 +00:00
libmudflap
libobjc
libssp
libstdc++-v3 valarray-inst.cc, [...]: Fix comment typos. 2007-10-01 21:49:39 +01:00
maintainer-scripts gcc_release: Do not include copies of faq.html in releases... 2007-10-01 06:21:10 +00:00
zlib
ABOUT-NLS
ChangeLog Makefile.tpl (AR_FOR_BUILD, [...]): Use autoconf substitutions. 2007-10-01 07:15:42 +00:00
ChangeLog.tree-ssa
compile
config-ml.in
config.guess
config.rpath
config.sub
configure Makefile.tpl (AR_FOR_BUILD, [...]): Use autoconf substitutions. 2007-10-01 07:15:42 +00:00
configure.ac Makefile.tpl (AR_FOR_BUILD, [...]): Use autoconf substitutions. 2007-10-01 07:15:42 +00:00
COPYING
COPYING3
COPYING3.LIB
COPYING.LIB
depcomp
install-sh
libtool-ldflags
libtool.m4
lt~obsolete.m4
ltgcc.m4
ltmain.sh
ltoptions.m4
ltsugar.m4
ltversion.m4
MAINTAINERS
Makefile.def
Makefile.in Makefile.tpl (AR_FOR_BUILD, [...]): Use autoconf substitutions. 2007-10-01 07:15:42 +00:00
Makefile.tpl Makefile.tpl (AR_FOR_BUILD, [...]): Use autoconf substitutions. 2007-10-01 07:15:42 +00:00
missing
mkdep
mkinstalldirs
move-if-change
README
README.SCO
symlink-tree
ylwrap

This directory contains the GNU Compiler Collection (GCC).

The GNU Compiler Collection is free software.  See the file COPYING
for copying permission.  The manuals, and some of the runtime
libraries, are under different terms; see the individual source files
for details.

The directory INSTALL contains copies of the installation information
as HTML and plain text.  The source of this information is
gcc/doc/install.texi.  The installation information includes details
of what is included in the GCC sources and what files GCC installs.

See the file gcc/doc/gcc.texi (together with other files that it
includes) for usage and porting information.  An online readable
version of the manual is in the files gcc/doc/gcc.info*.

See http://gcc.gnu.org/bugs.html for how to report bugs usefully.