This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/48279] [4.6/4.7 Regression] segfault in gfc_check_vardef_context
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 26 Apr 2011 18:47:40 +0000
- Subject: [Bug fortran/48279] [4.6/4.7 Regression] segfault in gfc_check_vardef_context
- Auto-submitted: auto-generated
- References: <bug-48279-4@http.gcc.gnu.org/bugzilla/>
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.