[Bug fortran/58916] Allocation of scalar with array source not rejected
janus at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Dec 9 11:02:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58916
janus at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-invalid-code
Status|UNCONFIRMED |NEW
Last reconfirmed| |2013-12-09
CC| |janus at gcc dot gnu.org
Summary|Allocation of a class(*) |Allocation of scalar with
|scalar with array source |array source not rejected
|allowed |
Ever confirmed|0 |1
--- Comment #1 from janus at gcc dot gnu.org ---
Here is a variant without classes:
real, allocatable :: a
real b(1)
allocate(a, source=b)
end
This is also not rejected, but gives an ICE (with 4.6 to 4.9).
More information about the Gcc-bugs
mailing list