This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/34143] alloc_comp_constructor.f90 fails with -fdefault-integer-8
- From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Nov 2007 13:03:38 -0000
- Subject: [Bug fortran/34143] alloc_comp_constructor.f90 fails with -fdefault-integer-8
- References: <bug-34143-10391@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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