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] PR38065 Fix checking of contained function


Tobias Burnus wrote:
gfortran had two bugs:

a) A function, contained in a public module procedure, which returns a
private derived type, was rejected claiming that the function is public,
which is nonsense

b) A public module function, returning a private derived type was
rejected with -std=f2003, but they are only invalid in -std=f95.

The patch fixes both problems and should be save for the regression only
phase as it is simple and prints an error less often than before, which
makes it safe.

Build and regtested on x86-64-linux.
OK for the trunk?

Tobias

OK, Thanks for patch.

Jerry


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