]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/fortran/primary.c
primary.c (gfc_match_rvalue): Only apply implicit type if variable does not have...
authorPaul Brook <paul@codesourcery.com>
Sat, 22 Jan 2005 15:24:09 +0000 (15:24 +0000)
committerPaul Brook <pbrook@gcc.gnu.org>
Sat, 22 Jan 2005 15:24:09 +0000 (15:24 +0000)
commit0dd973dd9710115f96420505591f65c5ab2445b4
tree2a3848c0ca3a85aeeedecdf1905a38e016a7dc5a
parentb8d5e92646dd8d2a4ea41770e734a29cfcbc1ea3
primary.c (gfc_match_rvalue): Only apply implicit type if variable does not have an explicit type.

2005-01-22  Paul Brook  <paul@codesourcery.com>

* primary.c (gfc_match_rvalue): Only apply implicit type if variable
does not have an explicit type.
(gfc_match_variable): Resolve implicit derived types in all cases.
Resolve contained function types from their own namespace, not the
parent.
* resolve.c (resolve_contained_fntype): Remove duplicate sym->result
checking.  Resolve from the contained namespace, not the parent.
testsuite/
* gfortran.dg/implicit_2.f90: New test.

From-SVN: r94066
gcc/fortran/ChangeLog
gcc/fortran/primary.c
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/implicit_2.f90 [new file with mode: 0644]