This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/41872] wrong-code: Issues with allocatable scalars
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Dec 2009 00:20:34 -0000
- Subject: [Bug fortran/41872] wrong-code: Issues with allocatable scalars
- References: <bug-41872-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from burnus at gcc dot gnu dot org 2009-12-30 00:20 -------
Created an attachment (id=19421)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19421&action=view)
Patch
- Nullifies local variables
- Fixes double-allocation check in ALLOCATE statement
TODO:
- INTENT(OUT) variables do not get initialized
- SAVED local variables are (probably) mishandled
- Check whether other things such as allocatable scalar components,
(absent/present) optional dummys etc. work.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41872