This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/45757] Accepts invalid: SHAPE with scalar
- From: "mikael at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Sep 2010 10:34:03 -0000
- Subject: [Bug fortran/45757] Accepts invalid: SHAPE with scalar
- References: <bug-45757-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from mikael at gcc dot gnu dot org 2010-09-23 10:34 -------
Arguments.
SOURCE shall be a scalar or array of any type
Examples. The value of SHAPE (A (2:5, â??1:1) ) is [4, 3]. The value of SHAPE
(3) is the rank-one array of size zero.
It seems the current behaviour is fine.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45757