This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/43388] [F2008][OOP] ALLOCATE with MOLD=
- 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: 16 Mar 2010 13:58:45 -0000
- Subject: [Bug fortran/43388] [F2008][OOP] ALLOCATE with MOLD=
- References: <bug-43388-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from burnus at gcc dot gnu dot org 2010-03-16 13:58 -------
Found the right spot in the standard (well, actually Bill Long did):
"if source-expr is specified, each allocate-object is allocated with the
dynamic type and type parameter values of source-expr; otherwise, each
allocate-object is allocated with its dynamic type the same as its declared
type."
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43388