[Bug fortran/48279] [4.6/4.7 Regression] segfault in gfc_check_vardef_context

burnus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Apr 26 18:47:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48279

--- Comment #12 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-04-26 18:46:15 UTC ---
Created attachment 24106
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24106
Draft patch for the main issue and for the -std=f2003/f2008 diagnostic

The regression is caused by:

New Revision: 165749
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=165749
2010-10-21  Tobias Burnus  <burnus@net-b.de>

        PR fortran/46100
        * expr.c (gfc_check_vardef_context): Treat pointer functions
        as variables.

That patch itself was OK - however, generic interfaces were not honoured.

 * * *

Attached is a draft patch for this issue and for the -std=f2003/f2008
diagnostic for comment 7 (cf. comment 8).

 * * *

Using -std=f95, the test case in comment 7 segfaults; I have not checked
whether it is due to using an old gfortran (Rev. 165749) - nor whether it is a
regression.  This issue is tracked in PR 48776.



More information about the Gcc-bugs mailing list