This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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] PR34901 - Make mismatched-types error message less odd


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


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