[Bug fortran/45757] Accepts invalid: SHAPE with scalar

2010-09-23 Thread burnus at gcc dot gnu dot org
--- Comment #2 from burnus at gcc dot gnu dot org 2010-09-23 11:44 --- Mikael, thanks for checking! Close as INVALID. -- burnus at gcc dot gnu dot org changed: What|Removed |Added

[Bug fortran/45757] Accepts invalid: SHAPE with scalar

2010-09-23 Thread mikael 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 f