[Patch, Fortran] PR34901 - Make mismatched-types error message less odd
Tobias Schlüter
tobias.schlueter@physik.uni-muenchen.de
Mon Jan 21 22:06:00 GMT 2008
Tobias Burnus wrote:
> With the relatively recently introduced more detailed error message for
> mismatched types, one can have such odd messages:
>
> Error: Type mismatch in argument 'a' at (1); passed REAL to REAL
>
> (The part after the semicolon is relatively new.) This patch changes the
> message to:
>
> Error: Type mismatch in argument 'a' at (1); passed REAL(kind=4) to
> REAL(kind=8)
Please use gfc_typename() for this purpose.
> Build on x86-64-linux by me and bootstrapped and regtested on
> i686-pc-linux-gnu by Daniel Franke (see PR).
> OK for the trunk?
With that change, I think it qualifies as obvious.
Cheers,
- Tobi
More information about the Fortran
mailing list