This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch, fortran] pr25054, pr25089 - ping**2


On Fri, Feb 17, 2006 at 11:49:36PM +0100, Paul Thomas wrote:
>   static try
> + resolve_fl_namelist (gfc_symbol *sym)
> + {
> +   gfc_namelist *nl;
> +   gfc_symbol *nlsym;
> + 
> +   /* Reject PRIVATE objects in a PUBLIC namelist.  */
> +   if (gfc_check_access(sym->attr.access, sym->ns->default_access))
> +     {
> +       for (nl = sym->namelist; nl; nl = nl->next)
> + 	{
> + 	  if (!nl->sym->attr.use_assoc
> + 		    &&
> + 		!(sym->ns->parent == nl->sym->ns)
> + 		    &&
> + 		 !gfc_check_access(nl->sym->attr.access,
> + 				   nl->sym->ns->default_access))

The whitespace looks fairly mangled here.  The patch
is OK to commit with the above fixed and the new testcase
namelist_5.f90.

-- 
Steve


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]