This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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] PR 35831: [F95] Shape mismatch check missing for dummy procedure argument


>> If you have a cute idea how to elegantly introduce warnings into this
>> mechanism, I'm all ears.
> I'm not sure that it qualifies as cute, but we could produce multi-line
> diagnostics in the same way c++ does (for template candidates for example),
> like:
> error/warning: #the error/warning
> note: in actual argument at <> # the context

Maybe not the worst idea. The question is, how would we do this
technically? Can it be handled with the existing infrastructure
(gfc_error_... )?

Alternatives might be:
 * simply throw the warning without context
 * have 'check_dummy_characteristics' not return SUCCESS/FAILURE, but
something like SUCCESS/WARNING/ERROR and then react on this
appropriately by throwing either an error or a warning (more tedious)

Cheers,
Janus


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