This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, Fortran] PR34901 - Make mismatched-types error message less odd
- From: Tobias Schlüter <tobias dot schlueter at physik dot uni-muenchen dot de>
- To: Tobias Burnus <burnus at net-b dot de>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>, "'fortran at gcc dot gnu dot org'" <fortran at gcc dot gnu dot org>
- Date: Mon, 21 Jan 2008 19:13:05 +0100
- Subject: Re: [Patch, Fortran] PR34901 - Make mismatched-types error message less odd
- References: <4794D6D2.6070800@net-b.de>
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