Re: [Patch, Fortran] PR 48800 - fix "IMPORT :: symbol"

2011-05-01 Thread Mikael Morin
> --- a/gcc/fortran/decl.c > +++ b/gcc/fortran/decl.c > @@ -2995,7 +2995,7 @@ gfc_match_import (void) >gfc_error ("Type name '%s' at %C is ambiguous", name); >return MATCH_ERROR; > } > - else if (gfc_current_ns->proc_name->ns->parent != NULL > +

Re: [Patch, Fortran] PR 48800 - fix "IMPORT :: symbol"

2011-04-30 Thread Tobias Burnus
Am 30.04.2011 17:31, schrieb Jerry DeLisle: On 04/29/2011 02:45 PM, Tobias Burnus wrote: Nearly obvious patch. Build and regtested on x86-64-linux. OK for the trunk? Thats a oneliner. OK Thanks for the review! Unfortunately, I had submitted/committed the wrong test case. (Both test cases a

Re: [Patch, Fortran] PR 48800 - fix "IMPORT :: symbol"

2011-04-30 Thread Jerry DeLisle
On 04/29/2011 02:45 PM, Tobias Burnus wrote: Nearly obvious patch. Build and regtested on x86-64-linux. OK for the trunk? Tobias Thats a oneliner. OK Thanks, Jerry

[Patch, Fortran] PR 48800 - fix "IMPORT :: symbol"

2011-04-29 Thread Tobias Burnus
Nearly obvious patch. Build and regtested on x86-64-linux. OK for the trunk? Tobias 2011-04-30 Tobias Burnus PR fortran/48800 * decl.c (gfc_match_import): Don't try to find the symbol if already found. 2011-04-30 Tobias Burnus PR fortran/48800 * gfortran.dg/interface_36.f90: New.