[Patch, Fortran] PR34901 - Make mismatched-types error message less odd

Tobias Burnus burnus@net-b.de
Mon Jan 21 18:34:00 GMT 2008


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)

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?

Tobias


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mismatch.diff
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20080121/0093a835/attachment.ksh>


More information about the Fortran mailing list