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] PR25018 - ICE in parameter initialization - and PR25029 - assumed size pointer assignments


On Sat, Dec 17, 2005 at 03:35:40PM +0100, Paul Thomas wrote:
> 
> In fact, I want to withdraw the second half of this patch, if that is 
> acceptable to you, because I am most of the way to sorting out all the 
> restrictions on assumed size arrays. 

I have no problems with withdrawing a portion of the patch if
something better is cooking.

> >I don't think it's necessary to meantion the standard at all, that's 
> >implied by the fact we're generating an error. It's hardly likely that the 
> >user thinks we're enforcing the C standard :-)
> >"Assumed length variable '%s' not permitted in constant expression at $L"
> >
> What I was trying to do there was to indicate a difference between a 
> warning/error that arises from application of the standard, from those 
> that are plain wrong in any circumstances.  Would you prefer  
> "Extension: assumed length variable '%s' in constant expression at $L"; 
> a style, which is used elsewhere in gfortran?
> 

IMHO, the use of "Extension: " in gfc_notify_std() is ugly and
unneeded.  In this particular case, we have GFC_STD_GNU, which
yields:
  (1) -std=f95  --> "Error: assumed length ..."
  (2) -pedantic --> "Warning: assumed length ..."
This should be sufficient information for a user to determine
that perhpas they are doing something that is no a Good Thing.

-- 
Steve


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