[Bug fortran/34143] alloc_comp_constructor.f90 fails with -fdefault-integer-8
fxcoudert at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Nov 20 13:04:00 GMT 2007
------- Comment #4 from fxcoudert at gcc dot gnu dot org 2007-11-20 13:03 -------
The Intel and Sun compilers complain that this code is not legal, because you
can't do "x = mytype(yy, bar)" if yy is not allocated.
Otherwise, a reduced testcase on x86_64-linux is:
type t
integer, allocatable :: a(:)
end type t
type(t) :: x
integer(kind=8), allocatable :: yy(:)
x = t(yy)
if (allocated(x%a)) print *, "bug"
end
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fxcoudert at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-11-20 13:03:36
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34143
More information about the Gcc-bugs
mailing list