This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/72832] [OOP] ALLOCATE with SOURCE fails to allocate requested dimensions
- From: "vehre at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 10 Aug 2016 08:28:01 +0000
- Subject: [Bug fortran/72832] [OOP] ALLOCATE with SOURCE fails to allocate requested dimensions
- Auto-submitted: auto-generated
- References: <bug-72832-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72832
vehre at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |vehre at gcc dot gnu.org
--- Comment #2 from vehre at gcc dot gnu.org ---
There are two bugs in one here:
- the shape is selected from source= and not from the b(1:4), and
- the shape of a and new b is not conformable, which can only be deduced at
runtime (and is already when the class(t) is replaced by type(t) and
-fcheck=all is used).