This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/48095] [OOP] Invalid assignment to procedure pointer component not rejected
- 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, 29 Mar 2011 10:10:52 +0000
- Subject: [Bug fortran/48095] [OOP] Invalid assignment to procedure pointer component not rejected
- Auto-submitted: auto-generated
- References: <bug-48095-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48095
Tobias Burnus <burnus at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |burnus at gcc dot gnu.org
--- Comment #5 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-03-29 10:10:40 UTC ---
Remains to be done: The test case of comment 0. Seemingly, for an
initialization, the check is not done - while for a normal pointer assignment
it is (in expr.c's gfc_check_pointer_assign).
I would assume that one needs a similar check in resolve_structure_cons. There
are already checks for "pointer initialization" - one probably needs needs to
add a similar check to the one in gfc_check_pointer_assign.