[Patch, Fortran] PR38152: procedure pointers as module variables

Janus Weil janus@gcc.gnu.org
Tue Apr 7 15:04:00 GMT 2009


Hi all,

here is a one-line fix for a problem with proc_ptr_13.f90 I discovered
today. The test case works as long as it is not compiled with "-g"
(which results in a segfault).
Regression-tested on x86_64-unknown-linux-gnu. Ok for trunk?

Should I also backport this to 4.4? If yes, would this be possible
before the release, or should I wait? It definitely is a regression
(in the way that 4.3 gave a "not implemented" message, while 4.4 gives
an ICE).

Cheers,
Janus


2009-04-07  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/38152
	* trans-decl.c (gfc_get_symbol_decl): Correctly set decl location for
	procedure pointer decls.


2009-04-07  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/38152
	* gfortran.dg/proc_ptr_13.f90: Add "-g" option.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr38152.diff
Type: text/x-patch
Size: 1032 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20090407/d87946bc/attachment.bin>


More information about the Fortran mailing list