This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, Fortran, F03] PR 54949: abstract procedure pointers not rejected
- From: Tobias Burnus <burnus at net-b dot de>
- To: Janus Weil <janus at gcc dot gnu dot org>, gfortran <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 16 Dec 2013 22:11:37 +0100
- Subject: Re: [Patch, Fortran, F03] PR 54949: abstract procedure pointers not rejected
- Authentication-results: sourceware.org; auth=none
- References: <CAKwh3qjbz9jgPhSg47KsjCXXeMdFJxXGHoZBMdYMqahw0uBK9g at mail dot gmail dot com>
Janus Weil wrote:
attached is a close-to-trivial patch which rejects the declaration of
'abstract procedure pointers' (which is not a valid Fortran concept),
and thereby fixes an ICE-on-invalid.
Regtested on x86_64-unknown-linux-gnu. Ok for trunk?
Looks good to me. Thanks for the patch!
[In principle the ICE is a regression, but I don't think the patch is
worth backporting.]
I concur.
Tobias
2013-12-16 Janus Weil <janus@gcc.gnu.org>
PR fortran/54949
* symbol.c (check_conflict): Forbid abstract procedure pointers.
(gfc_add_abstract): Check for attribute conflicts.
2013-12-16 Janus Weil <janus@gcc.gnu.org>
PR fortran/54949
* gfortran.dg/proc_ptr_44.f90: New.