------- Comment #4 from bugs at 59A2 dot org  2010-01-25 10:33 -------
(In reply to comment #3)
> So it's gfortran's fault you write non-portable code, and instead
> of dealing with it on your end, you think that gfortran developers
> should do the work to make your code compile.

Actually, gfortran versions up to and including 4.4.2 do not complain about
this usage (but it looks like that was due to -Wline-truncation being
defective).  All versions of gfortran compile this hybrid source "correctly",
it's only (what I consider) a spurious warning with -Wline-truncation, and only
in the 4.5 snapshot.

> I'll note that I stated that I felt it should be closed with a
> WONTFIX, but changed it to an enhancement request.  In lieu of receiving
> a patch from you to address the issue, someone may someday in the 
> distant future, when there are less important bugs to fix, might
> address the issue.

I'm not familiar with the project, but if you tell me where to look, I may be
able to submit a patch.

> The Note in the Standard is assuming a specific behavior for a
> processor-dependent behavior.  gfortran currently does not 
> assume that specific choice.

Based on the way the source is compiled, as opposed to warnings under
-Wline-truncation, gfortran *does* make that specific choice.  If you are
saying that this may change in the future (making such source an error instead
of a warning), then the warning is completely valid (but anticipate user
complaints if such a change happens).


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42852

Reply via email to