re PR fortran/32827 (IMPORT fails for TYPE when also used in INTERFACE)
authorPaul Thomas <pault@gcc.gnu.org>
Mon, 13 Aug 2007 20:58:00 +0000 (20:58 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Mon, 13 Aug 2007 20:58:00 +0000 (20:58 +0000)
commit5a8af0b4ef5b662dca364091fc4d662eca12bb29
treee3eb7a00a8212cb938f95778ba895342840f6e09
parent462643f011112b0be9615d536f2fb1521a86a458
re PR fortran/32827 (IMPORT fails for TYPE when also used in INTERFACE)

2007-08-13  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/32827
* decl.c (variable_decl): Check for an imported symbol
by looking for its symtree and testing for the imported
attribute.
(gfc_match_import): Remove change of symbol's namespace
and set the attribute imported instead.
* symbol.c (gfc_get_sym_tree): It is not an error if a
symbol is imported.
* gfortran.h : Add the 'imported' to symbol_attribute.

2007-08-13  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/32827
* gfortran.dg/import6.f90: New test.

From-SVN: r127397
gcc/fortran/ChangeLog
gcc/fortran/decl.c
gcc/fortran/gfortran.h
gcc/fortran/symbol.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/import6.f90 [new file with mode: 0644]