This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/54949] New: [F03] abstract procedure pointers not rejected
- From: "janus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 17 Oct 2012 13:32:06 +0000
- Subject: [Bug fortran/54949] New: [F03] abstract procedure pointers not rejected
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54949
Bug #: 54949
Summary: [F03] abstract procedure pointers not rejected
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: janus@gcc.gnu.org
Test case (inspired by
https://groups.google.com/forum/?fromgroups=#!topic/comp.lang.fortran/F_ROPgBJGpY):
program test
implicit none
abstract interface
subroutine abssub
end subroutine
end interface
pointer :: abssub
abssub => sub
contains
subroutine sub
end subroutine
end
This currently gives an
internal compiler error: in fold_convert_loc, at fold-const.c:1979
but should be rejected, since a procedure pointer can not be ABSTRACT.