https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84591
--- Comment #7 from kargls at comcast dot net ---
(In reply to kargls from comment #6)
> (In reply to anlauf from comment #5)
> > (In reply to kargls from comment #4)
> > > (In reply to Thomas Koenig from comment #3)
> > > > Resolve as invalid?
> > >
> > > IMHO. Yes.
> > >
> > > IMNSHO, -fdefault-integer-8 should have been removed from
> > > gfortran years ago. I even submitted a patch to do so,
> > > which was rejected. Codes in the testsuite are meant to
> > > test a patch fixes a real issue. Running the testsuite
> > > with -fdefault-integer-8 is simply going to run into
> > > issues with BIND(C).
> >
> > Careful. The -fdefault-integer-8 is just a tip of a difference iceberg.
>
> Well, I disagree. -fdefault-integer-8 should have been removed.
> If one thinks they needs that option, then they likely are looking
> for -finteger-4-integer-8.
PS:
% gfcx -c bind_c_usage_10.f03
% gfcx -c -finteger-4-integer-8 bind_c_usage_10.f03
% gfcx -c -fdefault-integer-8 bind_c_usage_10.f03
bind_c_usage_10.f03:66:31:
66 | integer(c_int) function func4()
| 1
Error: FUNCTION result func4 cannot be of type INTEGER(4) in FUNCTION func4 at
(1)
...
-fdefault-integer-8 should be removed.