This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/32968] selected_(int|real)_kind fail with -fdefault-integer-8
- From: "dominiq at lps dot ens dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Aug 2007 00:17:42 -0000
- Subject: [Bug fortran/32968] selected_(int|real)_kind fail with -fdefault-integer-8
- References: <bug-32968-12313@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #12 from dominiq at lps dot ens dot fr 2007-08-03 00:17 -------
Subject: Re: selected_(int|real)_kind fail with
-fdefault-integer-8
> I think that we may be converging on a patch. Can you test
> the attached diff?
I have converged in the same direction (modulo the coding style!-):
+ if (actual->expr->ts.kind != 4)
+ {
+ ts.type = BT_INTEGER;
+ ts.kind = 4;
+ gfc_convert_type (actual->expr, &ts, 2);
+ }
It pass my tests and it will regtest while I am going to bed (2AM my time).
Thanks.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32968