This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/28548] [4.2 Regression]: Optional argument failed
- From: "paul dot richard dot thomas at cea dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Aug 2006 08:14:47 -0000
- Subject: [Bug fortran/28548] [4.2 Regression]: Optional argument failed
- References: <bug-28548-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #11 from paul dot richard dot thomas at cea dot fr 2006-08-04 08:14 -------
Steve and Martin,
> > Hmm, but my point was that even if gfortran thinks that the __convert_*
> > routines are elemental (as was mentioned in an earlier comment), it should
> > still compile the code without problems, because it is proven that the
> > optional argument actually exists when the __convert_* call is made.
I think that you are right - I screwed up by nor reading the first sentence
carefully enough.
> It's more complicated than just optional and elemental.
> The patch, AFAICT, is correct.
Yes, I think that it is in that it excludes procedures marked as elemental that
are not, in fact, elemental.
I have taken a brief look at making a runtime version of this error and have
recoiled in horror; the combination of simplification and separate translation
of intrinsic procedures leads me to believe that the best course of action
would be to accept Steve's patch and change the error to a warning.
Paul
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28548